From 35ddac1871fbbc608417e1b1ec2012bf09687edd Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 30 Jun 2024 06:41:21 +0300 Subject: bugfix --- lib/_ak_log | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/_ak_log b/lib/_ak_log index a25ef00..c598ab8 100755 --- a/lib/_ak_log +++ b/lib/_ak_log @@ -56,10 +56,11 @@ _ak_log_message(){ then if [ ! -z "$3" ] && [ -n "$3" ] then - echo "$TS" "<$1>" "[$2]" "$3" >> $AK_LOGSFILE + msg="$(echo -n $*| cut -d ' ' -f 3-)" + echo "$TS" "<$1>" "[$2]" "$msg" >> $AK_LOGSFILE if [ ! -z $AK_DEBUG ] && [ -n "$AK_DEBUG" ] && [ "$AK_DEBUG" == "yes" ] then - echo "$TS" "<$1>" "[$2]" "$3" >&2 + echo "$TS" "<$1>" "[$2]" "$msg" >&2 fi else echo "$TS" "<$1>" "[ERROR]" "No message" >> $AK_LOGSFILE -- cgit v1.2.3