diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 09:36:53 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 09:36:53 +0200 |
commit | cd43e57b999422980ea95df7f1d03117342e358e (patch) | |
tree | 37afe07c509e7508d8f69edd0fe8793227401023 /bin/ak-news | |
parent | 4e8f09fcf92eb8de4e39d512ce36b9ed87fbde87 (diff) | |
download | arching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.tar.gz arching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.tar.bz2 arching-kaos-tools-cd43e57b999422980ea95df7f1d03117342e358e.zip |
Simplifying logs
Diffstat (limited to 'bin/ak-news')
-rwxr-xr-x | bin/ak-news | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/ak-news b/bin/ak-news index 220aafa..b730821 100755 --- a/bin/ak-news +++ b/bin/ak-news @@ -5,19 +5,19 @@ ZNEWSDIR="$AK_WORKDIR/news" TEMP="/tmp/aktmp" logit(){ - ak-logthis "<$PROGRAM>" "$1" "$2" + ak-logthis "$PROGRAM" "$1" "$2" } if [ ! -d $ZNEWSDIR ]; then mkdir $ZNEWSDIR if [ "$?" == 0 ]; then - logit "[INFO]" "$ZNEWSDIR created" + logit "INFO" "$ZNEWSDIR created" else - logit "[ERROR]" "$ZNEWSDIR couldn't be created" + logit "ERROR" "$ZNEWSDIR couldn't be created" exit 1 fi else - logit "[INFO]" "$ZNEWSDIR found" + logit "INFO" "$ZNEWSDIR found" fi cd $ZNEWSDIR @@ -188,8 +188,8 @@ _ak_modules_news_read(){ ak-ipfs-cat $linkToText else - ak-logthis "[ERROR]" "Not a news block." - echo "[ERROR] Not a news block." + logit "ERROR" "Not a news block." + echo "ERROR Not a news block." exit 1 fi rm temp |