diff --git a/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp b/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp index 04d67637f..bae7dc86d 100755 --- a/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp +++ b/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp @@ -116,7 +116,8 @@ namespace RSUHealthMonitor PLOG(logINFO) << "SNMP RSU status call for field:" << config.field << ", OID: " << config.oid; snmp_response_obj responseVal; auto success = _snmpClientPtr->process_snmp_request(config.oid, request_type::GET, responseVal); - if (!success && config.required){ + if (!success && config.required) + { PLOG(logERROR) << "SNMP session stopped as the required field: " << config.field << " failed! Return empty RSU status!"; return Json::nullValue; }