Timestamp our log entries
This commit is contained in:
parent
26fffb92f0
commit
74f477ab6d
@ -31,7 +31,7 @@ log() {
|
||||
# loglevel 2: Definitely debugging
|
||||
[ -z "$1" ] && return 1
|
||||
if (( _optverbose >= ${2:-0} )); then
|
||||
printf "%s\\n" "$1"
|
||||
printf "%s - %s\\n" "$(date -Iseconds)" "$1"
|
||||
fi
|
||||
}
|
||||
warn() {
|
||||
|
Loading…
Reference in New Issue
Block a user