Log all PELs as informational
Hardware failure dumps or boot failure dumps are collected when
the systems are in a critically bad state. Additional errors that
occur during the dump collection may be side effects of the prior
failures. Thus, logging all such errors as informational helps
avoid unwanted alerts.
Change-Id: Ie00d7689fcdae4ac1398f3bda36ecc581b305a95
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/dump/create_pel.cpp b/dump/create_pel.cpp
index dad0807..89e1842 100644
--- a/dump/create_pel.cpp
+++ b/dump/create_pel.cpp
@@ -135,6 +135,15 @@
Severity logSeverity = convertSeverityToEnum(severity);
+ if (logSeverity != openpower::dump::pel::Severity::Informational)
+ {
+ lg2::info(
+ "Changing severity from {SEV_ORIG} to informational in the "
+ "dumping path",
+ "SEV_ORIG", logSeverity);
+ logSeverity = openpower::dump::pel::Severity::Informational;
+ }
+
PELFFDCInfo pelFFDCInfo;
pelFFDCInfo.emplace_back(
std::make_tuple(sdbusplus::xyz::openbmc_project::Logging::server::