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-news | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/ak-news') 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 -- cgit v1.2.3