Log PEL if BIOS handler fails
Avoid failing Manager service in case BIOS handler class fails. Handle
failure locally in the calls.
This is required so that failure in BIOS class does not fail the Manager
service and put BMC into Quiesced state.
Change-Id: Ic4f3aa360dc8703de591057b9208b0a31591885c
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/vpd-manager/src/bios_handler.cpp b/vpd-manager/src/bios_handler.cpp
index 683d5db..73dd229 100644
--- a/vpd-manager/src/bios_handler.cpp
+++ b/vpd-manager/src/bios_handler.cpp
@@ -145,8 +145,12 @@
}
else
{
- // TODO: log a predicitive PEL.
- logging::logMessage("Invalid typre received from BIOS table.");
+ logging::logMessage("Invalid type received for BIOS table.");
+ EventLogger::createSyncPel(
+ types::ErrorType::FirmwareError, types::SeverityType::Warning,
+ __FILE__, __FUNCTION__, 0,
+ std::string("Invalid type received for BIOS table."),
+ std::nullopt, std::nullopt, std::nullopt, std::nullopt);
break;
}
}