netipmid: replace std::cerr with phosphor::logging calls

This is part of a cleanup and standardization effort of code to get
existing code up to date.

Change-Id: I0c982ef8d7afa2f56a9cd204bb8ac3112769641c
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/sessions_manager.cpp b/sessions_manager.cpp
index 1a70b49..95a8a15 100644
--- a/sessions_manager.cpp
+++ b/sessions_manager.cpp
@@ -5,8 +5,10 @@
 #include <algorithm>
 #include <cstdlib>
 #include <iomanip>
-#include <iostream>
 #include <memory>
+#include <phosphor-logging/log.hpp>
+
+using namespace phosphor::logging;
 
 namespace session
 {
@@ -89,15 +91,8 @@
         return session;
     }
 
-    std::cerr << "E> No free sessions left: Active: " << activeSessions
-              << " Allowed: " << MAX_SESSION_COUNT << "\n";
+    log<level::INFO>("No free RMCP+ sessions left");
 
-    for (const auto& iterator : sessionsMap)
-    {
-        std::cerr << "E> Active Session: 0x" << std::hex << std::setfill('0')
-                  << std::setw(8) << (iterator.second)->getBMCSessionID()
-                  << "\n";
-    }
     throw std::runtime_error("No free sessions left");
 }