summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeepakala-k <deepakala.karthikeyan@ibm.com>2023-03-09 14:53:16 +0300
committerEd Tanous <ed@tanous.net>2023-03-13 22:41:06 +0300
commita90323367863533ae3456ed2ee1baa705439eea9 (patch)
treefbf079a1ab4354ed6aac69cb5c45609786d5e0ba
parent3e35c761b7793696267870550bd6f0b0035f4110 (diff)
downloadbmcweb-a90323367863533ae3456ed2ee1baa705439eea9.tar.xz
Raise UnpackErrorPrinter to Log BMCWEB_LOG_ERROR
If reading a particular property failed, it hits the UnpackErrorPrinter. The error was captured as a debug message(BMCWEB_LOG_DEBUG). As it is important to capture these traces on a release image, the log level is raised to BMCWEB_LOG_ERROR Change-Id: I14b8d6d48e3354beb317f6380b2f746cad151168 Signed-off-by: Deepa Karthikeyan <deepakala.karthikeyan@ibm.com>
-rw-r--r--redfish-core/include/utils/dbus_utils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/include/utils/dbus_utils.hpp b/redfish-core/include/utils/dbus_utils.hpp
index 2b1e12d082..7e895fea47 100644
--- a/redfish-core/include/utils/dbus_utils.hpp
+++ b/redfish-core/include/utils/dbus_utils.hpp
@@ -14,7 +14,7 @@ struct UnpackErrorPrinter
void operator()(const sdbusplus::UnpackErrorReason reason,
const std::string& property) const noexcept
{
- BMCWEB_LOG_DEBUG
+ BMCWEB_LOG_ERROR
<< "DBUS property error in property: " << property << ", reason: "
<< static_cast<
std::underlying_type_t<sdbusplus::UnpackErrorReason>>(