Timestamp our log entries
This commit is contained in:
parent
26fffb92f0
commit
74f477ab6d
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user