log for debug

This commit is contained in:
Shihaam Abdul Rahman 2022-04-08 19:37:17 +05:00
parent 937892a168
commit 1c8620cb12
Signed by: shihaam
GPG Key ID: 16ADCF6871CB2A56
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.cookie .cookie
.*.kate-swp .*.kate-swp
.cache/* .cache/*
log.txt

View File

@ -4,7 +4,9 @@ while true;
do do
source .env source .env
COUNT=$(echo $[$COUNT+1]) COUNT=$(echo $[$COUNT+1])
STATUS=$(curl -s $BML_URL/login | jq .code) STATUS=$(curl -s $BML_URL/login)
echo $STATUS >> log.txt
STATUS=$(echo $STATUS | jq .code)
if [ "$STATUS" = "0" ] if [ "$STATUS" = "0" ]
then then
TEXT="🟢BML Online" TEXT="🟢BML Online"