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 /sessions_manager.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 'sessions_manager.cpp')
-rw-r--r-- | sessions_manager.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
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 @@ std::shared_ptr<Session> 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"); } |