Add timestamps to warning messages
This commit is contained in:
parent
da05005665
commit
8a2624ca2f
@ -41,7 +41,7 @@ warn() {
|
||||
if [ -t 1 ]; then
|
||||
printf "\\e[33m%s\\e[0m\\n" "$1"
|
||||
else
|
||||
printf "WARN: %s\\n" "$1"
|
||||
printf "%s - WARN: %s\\n" "$(date -Iseconds)" "$1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user