1
0
Fork 0

containerctl: Fix log_error() not logging a timestamp

As ${TODAY} was forgotten, the first argument from ${@} was used as a
timestamp instead, resulting in malformed log messages. Fix this by
adding ${TDOAY} before ${@}.

Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
Enno Tensing 2025-07-26 16:51:40 +02:00
parent 131ff71f34
commit d1e4452a5d
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -9,7 +9,7 @@ LOG="${LOGDIR}/${TODAY}"
log_error()
{
printf '[%b] (EE) %b\n' "${@}" | tee -a "${LOG}"
printf '[%b] (EE) %b\n' "${TODAY}" "${@}" | tee -a "${LOG}"
}
list_dir()