Compare commits

..

1 Commits

Author SHA1 Message Date
566e1a421f
fix: add newline after each log line
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-10-09 15:14:19 +02:00

View File

@ -8,7 +8,7 @@ log() {
message="$2" message="$2"
timestamp=$(date +"%Y-%m-%d %H:%M:%S") timestamp=$(date +"%Y-%m-%d %H:%M:%S")
script_name="$(basename "$0")" 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. # Log the given message at INFO level. All logs are written to stderr with a timestamp.