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:
parent
131ff71f34
commit
d1e4452a5d
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue