Skip to content

Commit 5f0ffcc

Browse files
authored
[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
1 parent 92220dc commit 5f0ffcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/fast-reboot

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ EXIT_TEAMD_RETRY_COUNT_FAILURE=23
5454
function error()
5555
{
5656
echo $@ >&2
57+
logger -p user.err "Error seen during warm-reboot shutdown process: $@"
5758
}
5859

5960
function debug()

0 commit comments

Comments
 (0)