diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-30 06:41:21 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-30 06:41:21 +0300 |
commit | 35ddac1871fbbc608417e1b1ec2012bf09687edd (patch) | |
tree | d2bb9a26c22d341e108e5d66d9fcbc4ab7700d12 /lib/_ak_log | |
parent | a855c3b95846a2d7507b0e25efbffb6940785d17 (diff) | |
download | arching-kaos-tools-35ddac1871fbbc608417e1b1ec2012bf09687edd.tar.gz arching-kaos-tools-35ddac1871fbbc608417e1b1ec2012bf09687edd.tar.bz2 arching-kaos-tools-35ddac1871fbbc608417e1b1ec2012bf09687edd.zip |
bugfix
Diffstat (limited to 'lib/_ak_log')
-rwxr-xr-x | lib/_ak_log | 5 |
1 files changed, 3 insertions, 2 deletions
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 |