From cd43e57b999422980ea95df7f1d03117342e358e Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 09:36:53 +0200 Subject: Simplifying logs --- bin/ak-logthis | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/ak-logthis') diff --git a/bin/ak-logthis b/bin/ak-logthis index 295f60d..2ac3d80 100755 --- a/bin/ak-logthis +++ b/bin/ak-logthis @@ -6,25 +6,25 @@ then then if [ ! -z "$3" ] then - echo "$TS" "$1" "$2" "$3" >> $AK_LOGSFILE + echo "$TS" "<$1>" "[$2]" "$3" >> $AK_LOGSFILE if [ "$AK_DEBUG" == "yes" ] then - echo "$TS" "$1" "$2" "$3" >&2 + echo "$TS" "<$1>" "[$2]" "$3" >&2 fi exit 0 else - echo "$TS" "$1" "[ERROR]" "No message" >> $AK_LOGSFILE + echo "$TS" "<$1>" "[ERROR]" "No message" >> $AK_LOGSFILE if [ "$AK_DEBUG" == "yes" ] then - echo "$TS" "$1" "[ERROR]" "No message" >&2 + echo "$TS" "<$1>" "[ERROR]" "No message" >&2 fi exit 1 fi else - echo "$TS" "$1" "[ERROR]" "No type and message" >> $AK_LOGSFILE + echo "$TS" "<$1>" "[ERROR]" "No type and message" >> $AK_LOGSFILE if [ "$AK_DEBUG" == "yes" ] then - echo "$TS" "$1" "[ERROR]" "No type and message" >&2 + echo "$TS" "<$1>" "[ERROR]" "No type and message" >&2 fi exit 1 fi -- cgit v1.2.3