mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $SendTelegram: decrease log severity to info
The message is queued, not lost...
This commit is contained in:
@@ -827,7 +827,7 @@
|
|||||||
http-data=("chat_id=" . $ChatId . "&disable_notification=" . $Silent . \
|
http-data=("chat_id=" . $ChatId . "&disable_notification=" . $Silent . \
|
||||||
"&parse_mode=" . $ParseMode . "&text=" . $Text);
|
"&parse_mode=" . $ParseMode . "&text=" . $Text);
|
||||||
} on-error={
|
} on-error={
|
||||||
$LogPrintExit warning ("Failed sending telegram notification! Queuing...") false;
|
$LogPrintExit info ("Failed sending telegram notification! Queuing...") false;
|
||||||
|
|
||||||
:if ([ :typeof $TelegramQueue ] = "nothing") do={
|
:if ([ :typeof $TelegramQueue ] = "nothing") do={
|
||||||
:set TelegramQueue [ :toarray "" ];
|
:set TelegramQueue [ :toarray "" ];
|
||||||
|
Reference in New Issue
Block a user