From f8d2236e55e5c369b218017d1de1058d6a8ee361 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 19:26:24 +0200 Subject: Log formatting adjustment --- bin/ak-stellar-get-participants | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/ak-stellar-get-participants') diff --git a/bin/ak-stellar-get-participants b/bin/ak-stellar-get-participants index 838ad08..82c5503 100755 --- a/bin/ak-stellar-get-participants +++ b/bin/ak-stellar-get-participants @@ -4,7 +4,7 @@ tempdir=`mktemp -d` tempfile="$tempdir/tmp" tempaddr="$tempdir/tmpaddr" logit(){ - ak-logthis "<$PROGRAM>" "$1" "$2" + ak-logthis "$PROGRAM" "$1" "$2" } stellarParticipants="$AK_WORKDIR/stellar-network-participants" stellarParticipantsOnline="$AK_WORKDIR/stellar-network-participants-online" @@ -49,9 +49,9 @@ show_ids(){ if [ "$flag" == "0" ] then echo $test >> $stellarParticipants - logit "[INFO]" "Added $test" + logit "INFO" "Added $test" else - logit "[INFO]" "$test already there. Skipping..." + logit "INFO" "$test already there. Skipping..." fi i="$(expr $i + 1)" done @@ -99,9 +99,9 @@ do if [ "$flag" == "0" ] then echo $addressValuePair >> $stellarParticipantsOnline - logit "[INFO]" "$p is configured with $(echo $addressValuePair | awk '{ print $2 }'). Added to online participants." + logit "INFO" "$p is configured with $(echo $addressValuePair | awk '{ print $2 }'). Added to online participants." else - logit "[INFO]" "$(echo $addressValuePair | awk '{ print $2 }') is already in $stellarParticipantsOnline. Skipping..." + logit "INFO" "$(echo $addressValuePair | awk '{ print $2 }') is already in $stellarParticipantsOnline. Skipping..." fi fi done < $stellarParticipants -- cgit v1.2.3