aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-stellar-get-participants
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-01 19:26:24 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-01 19:26:24 +0200
commitf8d2236e55e5c369b218017d1de1058d6a8ee361 (patch)
tree1cdd4ea1476c3062d3dd38ee1ba62d6bb98eb680 /bin/ak-stellar-get-participants
parent7affa2082f61455a413d0c8fea08e79935d4f308 (diff)
downloadarching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.tar.gz
arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.tar.bz2
arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.zip
Log formatting adjustment
Diffstat (limited to 'bin/ak-stellar-get-participants')
-rwxr-xr-xbin/ak-stellar-get-participants10
1 files changed, 5 insertions, 5 deletions
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