reduce scheduled host transition logging
The BMC time can change periodically due to NTP or on some systems, via
periodic host commands. Change the logs that are impacted by this
time change to debug so the journal is not filled up with them.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I38f5465755d525a75a8242ee48f651090d2978b6
diff --git a/scheduled_host_transition.cpp b/scheduled_host_transition.cpp
index 1eb48f4..25c5deb 100644
--- a/scheduled_host_transition.cpp
+++ b/scheduled_host_transition.cpp
@@ -52,8 +52,8 @@
if (timer.isEnabled())
{
timer.setEnabled(false);
- log<level::INFO>("scheduledTime: The function Scheduled Host "
- "Transition is disabled.");
+ log<level::DEBUG>("scheduledTime: The function Scheduled Host "
+ "Transition is disabled.");
}
}
else
@@ -213,7 +213,7 @@
while (read(fd, time.data(), time.max_size()) > 0)
;
- log<level::INFO>("BMC system time is changed");
+ log<level::DEBUG>("BMC system time is changed");
schedHostTran->handleTimeUpdates();
return 0;