From a55624d86b6bd39f577e35f00def3355de12738d Mon Sep 17 00:00:00 2001 From: Vaibhav Hemant Dixit Date: Fri, 1 Mar 2024 16:58:15 -0800 Subject: [PATCH] [fast/warm-reboot] Put ERR message in syslog when a failure is seen (#3186) MSFT ADO: 26918588 This change is to add ERR logs generated during warm-reboot script to syslog. Currently the ERR logs are sent in stdout and a corresponding entry is not added to syslog. This makes it difficult to debug issues when stdout is not readily available. How I did it Modified existing error function to add the log entry to syslog. How to verify it Verified manually on physical device --- scripts/fast-reboot | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/fast-reboot b/scripts/fast-reboot index 1c47664e09..775d29e526 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -54,6 +54,7 @@ EXIT_TEAMD_RETRY_COUNT_FAILURE=23 function error() { echo $@ >&2 + logger -p user.err "Error seen during warm-reboot shutdown process: $@" } function debug()