fix: add newline after each log line
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Robert Kaussow 2021-10-09 15:14:19 +02:00
parent f3c1423c12
commit 566e1a421f
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 1 additions and 1 deletions

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] %b" "${timestamp}" "${level}" "$script_name" "${message}"
printf >&2 "%s [%s] [%s] %b\n" "${timestamp}" "${level}" "$script_name" "${message}"
}
# Log the given message at INFO level. All logs are written to stderr with a timestamp.