Add WARNING log in Restore Configuration IPMI cmd
BMC configurable items like user details will be lost on BMC reboot
after Restore Configuration IPMI cmd is called. Add a WARNING log
to track command executions.
Tested:
Verified the log added after executing Restore Configuration IPMI
command.
Signed-off-by: Arun P. Mohanan <arun.p.m@linux.intel.com>
Change-Id: Id7439d833487f645dce036815208264e57f6917d
diff --git a/src/oemcommands.cpp b/src/oemcommands.cpp
index dee6255..3ca7caa 100644
--- a/src/oemcommands.cpp
+++ b/src/oemcommands.cpp
@@ -2914,6 +2914,11 @@
return ipmi::responseUnspecifiedError();
}
restoreFile << value << "\n";
+
+ phosphor::logging::log<phosphor::logging::level::WARNING>(
+ "Restore to default will be performed on next BMC boot",
+ phosphor::logging::entry("ACTION=0x%0X", cmd));
+
break;
}
default: