fix: use echo to output logs
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2021-10-09 14:40:23 +02:00
parent 1ed052cd1b
commit dac9883008
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -8,7 +8,7 @@ log() {
message="$2"
timestamp=$(date +"%Y-%m-%d %H:%M:%S")
script_name="$(basename "$0")"
printf >&2 "%s [%s] [%s] %s" "${timestamp}" "${level}" "$script_name" "${message}"
echo >&2 "${timestamp} [${level}] [$script_name] ${message}"
}
# Log the given message at INFO level. All logs are written to stderr with a timestamp.