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>
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 @@
{
// 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 @@
{
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 @@
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);