aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_log
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-30 06:41:21 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-30 06:41:21 +0300
commit35ddac1871fbbc608417e1b1ec2012bf09687edd (patch)
treed2bb9a26c22d341e108e5d66d9fcbc4ab7700d12 /lib/_ak_log
parenta855c3b95846a2d7507b0e25efbffb6940785d17 (diff)
downloadarching-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-xlib/_ak_log5
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