Skip to content

Commit

Permalink
[fast/warm-reboot] Put ERR message in syslog when a failure is seen (s…
Browse files Browse the repository at this point in the history
…onic-net#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
  • Loading branch information
vaibhavhd authored and mssonicbld committed Mar 11, 2024
1 parent e2ac2b6 commit a55624d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a55624d

Please sign in to comment.