summaryrefslogtreecommitdiff
path: root/redfish-core/lib/fan.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/fan.hpp')
-rw-r--r--redfish-core/lib/fan.hpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/redfish-core/lib/fan.hpp b/redfish-core/lib/fan.hpp
index 76805315d3..3a7e2e2510 100644
--- a/redfish-core/lib/fan.hpp
+++ b/redfish-core/lib/fan.hpp
@@ -68,9 +68,9 @@ inline void getFanPaths(
{
if (ec.value() != EBADR)
{
- BMCWEB_LOG_ERROR
- << "DBUS response error for getAssociatedSubTreePaths "
- << ec.value();
+ BMCWEB_LOG_ERROR(
+ "DBUS response error for getAssociatedSubTreePaths {}",
+ ec.value());
messages::internalError(asyncResp->res);
}
return;
@@ -185,8 +185,8 @@ static inline void handleFanPath(
const dbus::utility::MapperGetObject& object) {
if (ec || object.empty())
{
- BMCWEB_LOG_ERROR << "DBUS response error on getDbusObject "
- << ec.value();
+ BMCWEB_LOG_ERROR("DBUS response error on getDbusObject {}",
+ ec.value());
messages::internalError(asyncResp->res);
return;
}
@@ -195,7 +195,7 @@ static inline void handleFanPath(
return;
}
- BMCWEB_LOG_WARNING << "Fan not found " << fanId;
+ BMCWEB_LOG_WARNING("Fan not found {}", fanId);
messages::resourceNotFound(asyncResp->res, "Fan", fanId);
}
@@ -239,8 +239,8 @@ inline void getFanHealth(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
{
if (ec.value() != EBADR)
{
- BMCWEB_LOG_ERROR << "DBUS response error for Health "
- << ec.value();
+ BMCWEB_LOG_ERROR("DBUS response error for Health {}",
+ ec.value());
messages::internalError(asyncResp->res);
}
return;
@@ -264,8 +264,8 @@ inline void getFanState(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
{
if (ec.value() != EBADR)
{
- BMCWEB_LOG_ERROR << "DBUS response error for State "
- << ec.value();
+ BMCWEB_LOG_ERROR("DBUS response error for State {}",
+ ec.value());
messages::internalError(asyncResp->res);
}
return;
@@ -291,8 +291,8 @@ inline void getFanAsset(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
{
if (ec.value() != EBADR)
{
- BMCWEB_LOG_ERROR << "DBUS response error for Properties"
- << ec.value();
+ BMCWEB_LOG_ERROR("DBUS response error for Properties{}",
+ ec.value());
messages::internalError(asyncResp->res);
}
return;
@@ -348,8 +348,8 @@ inline void getFanLocation(const std::shared_ptr<bmcweb::AsyncResp>& aResp,
{
if (ec.value() != EBADR)
{
- BMCWEB_LOG_ERROR << "DBUS response error for Location"
- << ec.value();
+ BMCWEB_LOG_ERROR("DBUS response error for Location{}",
+ ec.value());
messages::internalError(aResp->res);
}
return;