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/message_handler.cpp b/message_handler.cpp
index 68c1b60..e98955b 100644
--- a/message_handler.cpp
+++ b/message_handler.cpp
@@ -8,11 +8,13 @@
#include <sys/socket.h>
-#include <iostream>
#include <memory>
+#include <phosphor-logging/log.hpp>
#include <string>
#include <vector>
+using namespace phosphor::logging;
+
namespace message
{
@@ -27,7 +29,7 @@
// Read of the packet failed
if (readStatus < 0)
{
- std::cerr << "E> Error in Read : " << std::hex << readStatus << "\n";
+ log<level::ERR>("Error in Read", entry("STATUS=%x", readStatus));
return nullptr;
}