summaryrefslogtreecommitdiff
path: root/redfish-core/include/snmp_trap_event_clients.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/include/snmp_trap_event_clients.hpp')
-rw-r--r--redfish-core/include/snmp_trap_event_clients.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/redfish-core/include/snmp_trap_event_clients.hpp b/redfish-core/include/snmp_trap_event_clients.hpp
index 08ff81b439..de7bf9d95d 100644
--- a/redfish-core/include/snmp_trap_event_clients.hpp
+++ b/redfish-core/include/snmp_trap_event_clients.hpp
@@ -28,7 +28,7 @@ inline void afterGetSnmpTrapClientdata(
{
if (ec)
{
- BMCWEB_LOG_ERROR << "D-Bus response error on GetSubTree " << ec;
+ BMCWEB_LOG_ERROR("D-Bus response error on GetSubTree {}", ec);
messages::internalError(asyncResp->res);
return;
}
@@ -95,8 +95,8 @@ inline void
dbus::utility::ManagedObjectType& resp) {
if (ec)
{
- BMCWEB_LOG_ERROR << "D-Bus response error on GetManagedObjects "
- << ec;
+ BMCWEB_LOG_ERROR("D-Bus response error on GetManagedObjects {}",
+ ec);
messages::internalError(asyncResp->res);
return;
}
@@ -107,7 +107,7 @@ inline void
const std::string snmpId = path.filename();
if (snmpId.empty())
{
- BMCWEB_LOG_ERROR << "The SNMP client ID is wrong";
+ BMCWEB_LOG_ERROR("The SNMP client ID is wrong");
messages::internalError(asyncResp->res);
return;
}