summaryrefslogtreecommitdiffstats
path: root/host-cmd-manager.cpp
diff options
context:
space:
mode:
authorAditya Saripalli <adisarip@in.ibm.com>2017-11-09 14:46:27 +0530
committerVernon Mauery <vernon.mauery@linux.intel.com>2018-04-18 21:02:48 +0000
commit5fb14603817baad7418b627ca41927d9ec7c4fc9 (patch)
tree91607e546db5d8bbee17e40c0c8b28c2aaa082c6 /host-cmd-manager.cpp
parent7ebd246403417294fc6fa1914967b6e60a92f062 (diff)
downloadphosphor-host-ipmid-5fb14603817baad7418b627ca41927d9ec7c4fc9.tar.gz
phosphor-host-ipmid-5fb14603817baad7418b627ca41927d9ec7c4fc9.zip
Reducing IPMI logging footprint
-host-ipmid is very noisy in terms of journal logging. A small step towards cleaning that up. -Also converted printfs to phosphor-logging. Partially Resolves openbmc/openbmc#2507 Change-Id: I749c19c18d1cabf6f0216830c8cb0a08ee43d6de Signed-off-by: Aditya Saripalli <aditya0124@gmail.com> Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Diffstat (limited to 'host-cmd-manager.cpp')
-rw-r--r--host-cmd-manager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host-cmd-manager.cpp b/host-cmd-manager.cpp
index 500e57d..799f9bf 100644
--- a/host-cmd-manager.cpp
+++ b/host-cmd-manager.cpp
@@ -46,7 +46,7 @@ IpmiCmdData Manager::getNextCommand()
{
// Just return a heartbeat in this case. A spurious SMS_ATN was
// asserted for the host (probably from a previous boot).
- log<level::INFO>("Control Host work queue is empty!");
+ log<level::DEBUG>("Control Host work queue is empty!");
return std::make_pair(CMD_HEARTBEAT, 0x00);
}
@@ -95,7 +95,7 @@ void Manager::checkQueueAndAlertHost()
{
if (this->workQueue.size() >= 1)
{
- log<level::INFO>("Asserting SMS Attention");
+ log<level::DEBUG>("Asserting SMS Attention");
std::string IPMI_PATH("/org/openbmc/HostIpmi/1");
std::string IPMI_INTERFACE("org.openbmc.HostIpmi");
@@ -124,14 +124,14 @@ void Manager::checkQueueAndAlertHost()
log<level::ERR>("Error in setting SMS attention");
elog<InternalFailure>();
}
- log<level::INFO>("SMS Attention asserted");
+ log<level::DEBUG>("SMS Attention asserted");
}
}
// Called by specific implementations that provide commands
void Manager::execute(CommandHandler command)
{
- log<level::INFO>("Pushing cmd on to queue",
+ log<level::DEBUG>("Pushing cmd on to queue",
entry("COMMAND=%d", std::get<0>(command).first));
this->workQueue.emplace(command);
OpenPOWER on IntegriCloud