Fix entries used by phosphor-logging
Fixed entires used by phosphor::logging::log function. Now logs
display proper information.
Tested: - Verified if logs contain correct entries
Change-Id: I5254555aa55bbe06c882d7024db911812e6f3f63
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
diff --git a/src/report_manager.cpp b/src/report_manager.cpp
index 13ca6db..951aa5f 100644
--- a/src/report_manager.cpp
+++ b/src/report_manager.cpp
@@ -190,9 +190,9 @@
phosphor::logging::log<phosphor::logging::level::ERR>(
"Failed to load report from storage",
phosphor::logging::entry(
- "filename=",
+ "FILENAME=%s",
static_cast<std::filesystem::path>(path).c_str()),
- phosphor::logging::entry("msg=", e.what()));
+ phosphor::logging::entry("EXCEPTION_MSG=%s", e.what()));
reportStorage->remove(path);
}
}