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:
1 parent
75c8cac81d
commit
25f085d015
1 file changed
+2
-6
@@ -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