From 43f5536dcb2f17d88a898b1b2978abc2e1986415 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Mon, 28 Dec 2020 22:40:23 +0100 Subject: [PATCH] better log_message string format --- bashbot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index 8ea8eb7..d4faf49 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -26,7 +26,7 @@ # 8 - curl/wget missing # 10 - not bash! # -#### $$VERSION$$ v1.21-dev-25-gd496639 +#### $$VERSION$$ v1.21-dev-27-gd0f8716 ################################################################## # shellcheck disable=SC2140,SC2031,SC2120,SC1091,SC1117,SC2059 @@ -98,7 +98,7 @@ check_token(){ # log $1 to ERRORLOG with date log_error(){ printf "%s: %b\n" "$(date)" "$*" >>"${ERRORLOG}"; } log_debug(){ printf "%s: %b\n" "$(date)" "$*" >>"${DEBUGLOG}"; } -log_message(){ printf "\n%s: %b\n" "$(date)" "$*" >>"${MESSAGELOG}"; } +log_message(){ printf "\n%s: %s\n" "$(date)" "$*" >>"${MESSAGELOG}"; } log_update(){ printf "%s: %b\n" "$(date)" "$*" >>"${UPDATELOG}"; } # additional tests if we run in debug mode