aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-logthis
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-01 09:36:53 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-01 09:36:53 +0200
commitcd43e57b999422980ea95df7f1d03117342e358e (patch)
tree37afe07c509e7508d8f69edd0fe8793227401023 /bin/ak-logthis
parent4e8f09fcf92eb8de4e39d512ce36b9ed87fbde87 (diff)
downloadarching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.tar.gz
arching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.tar.bz2
arching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.zip
Simplifying logs
Diffstat (limited to 'bin/ak-logthis')
-rwxr-xr-xbin/ak-logthis12
1 files changed, 6 insertions, 6 deletions
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