Add timestamps to warning messages

This commit is contained in:
Salt 2020-07-25 19:48:06 -05:00
parent da05005665
commit 8a2624ca2f

View File

@ -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
}