diff options
author | Vernon Mauery <vernon.mauery@linux.intel.com> | 2018-12-19 14:55:15 -0800 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2018-12-19 15:40:27 -0800 |
commit | fc37e59e2f85e585ee830e801b5b26a2c859c86b (patch) | |
tree | 860d6c1a630558246809c348682a889e26c52a14 /message_handler.cpp | |
parent | 744b3c8b840a13ed4a6c07836ead4a0c88911437 (diff) | |
download | phosphor-net-ipmid-fc37e59e2f85e585ee830e801b5b26a2c859c86b.tar.gz phosphor-net-ipmid-fc37e59e2f85e585ee830e801b5b26a2c859c86b.zip |
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>
Diffstat (limited to 'message_handler.cpp')
-rw-r--r-- | message_handler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ std::shared_ptr<Message> Handler::receive() // 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; } |