From 46cc70a654b0863be18493f107bb51cc8433ccaf Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox Date: Thu, 7 Dec 2023 08:12:42 +0200 Subject: [PATCH] Move comment to better place --- dockers/docker-platform-monitor/etc/rsyslog.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dockers/docker-platform-monitor/etc/rsyslog.conf b/dockers/docker-platform-monitor/etc/rsyslog.conf index 95d162023da8..35815e5322a1 100644 --- a/dockers/docker-platform-monitor/etc/rsyslog.conf +++ b/dockers/docker-platform-monitor/etc/rsyslog.conf @@ -36,13 +36,13 @@ $SystemLogRateLimitBurst 20000 set $.PLATFORM=getenv("PLATFORM"); set $.CONTAINER_NAME=getenv("CONTAINER_NAME"); +if ($.PLATFORM == "x86_64-mlnx_msn2700-r0" or $.PLATFORM == "x86_64-mlnx_msn2700a1-r0" or $.PLATFORM == "x86_64-mlnx_msn2410-r0") then { + # This rsyslog configuration is intended to resolve the following error message that only appears on the MSN2700 and MSN2410 platforms: # "ERR pmon#sensord: Error getting sensor data: dps460/#10: Can't read" # This error is because of firmware issue with some type of PSU, we are not able to upgrade the FW online. # Since there is no functional impact, this error log can be ignored safely. - -if ($.PLATFORM == "x86_64-mlnx_msn2700-r0" or $.PLATFORM == "x86_64-mlnx_msn2700a1-r0" or $.PLATFORM == "x86_64-mlnx_msn2410-r0") then { - if $programname contains "sensord" and $msg contains "Error getting sensor data: dps460/#" then stop +if $programname contains "sensord" and $msg contains "Error getting sensor data: dps460/#" then stop } # Set remote syslog server