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