Timestamp our log entries

This commit is contained in:
Salt 2020-05-24 23:17:59 -05:00
parent 26fffb92f0
commit 74f477ab6d

View File

@ -31,7 +31,7 @@ log() {
# loglevel 2: Definitely debugging # loglevel 2: Definitely debugging
[ -z "$1" ] && return 1 [ -z "$1" ] && return 1
if (( _optverbose >= ${2:-0} )); then if (( _optverbose >= ${2:-0} )); then
printf "%s\\n" "$1" printf "%s - %s\\n" "$(date -Iseconds)" "$1"
fi fi
} }
warn() { warn() {