update error notification

This commit is contained in:
pavel.muhortov 2023-02-18 10:22:35 +03:00
parent f75d2564bd
commit 8889545d70
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ execquite() {
} }
execerror() { execerror() {
addtologs "error: $1" addtologs "error: $1"
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="error: $1" >> /dev/null 2>&1 curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="$(basename -s .sh $0) error: $1" >> /dev/null 2>&1
execquite execquite
} }
getconfig() { getconfig() {

View File

@ -32,7 +32,7 @@ execquite() {
} }
execerror() { execerror() {
addtologs "error: $1" addtologs "error: $1"
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="error: $1" >> /dev/null 2>&1 curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="$(basename -s .sh $0) error: $1" >> /dev/null 2>&1
execquite execquite
} }
getconfig() { getconfig() {

View File

@ -32,7 +32,7 @@ execquite() {
} }
execerror() { execerror() {
addtologs "error: $1" addtologs "error: $1"
curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="error: $1" >> /dev/null 2>&1 curl -s -X POST $telegramapiurl/sendMessage -d chat_id=$telegramchatid -d text="$(basename -s .sh $0) error: $1" >> /dev/null 2>&1
execquite execquite
} }
getconfig() { getconfig() {