Removed timestamps, they were more annoying than helpful, and we really don't care when it happened only that it happened.
This commit is contained in:
@@ -12,15 +12,11 @@ mkdir -p "$LOGDIR"
|
||||
|
||||
# Logging function
|
||||
log() {
|
||||
local msg
|
||||
msg="[$(date +%H:%M:%S)] $*"
|
||||
echo "$msg" | tee -a "$LOGFILE"
|
||||
echo "$*" | tee -a "$LOGFILE"
|
||||
}
|
||||
|
||||
log_error() {
|
||||
local msg
|
||||
msg="[ERROR] $*"
|
||||
echo "$msg" | tee -a "$LOGFILE" >&2
|
||||
echo "[ERROR] $*" | tee -a "$LOGFILE" >&2
|
||||
}
|
||||
|
||||
error_exit() {
|
||||
|
||||
Reference in New Issue
Block a user