aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-14 22:01:49 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-14 23:01:24 +0100
commit95b8a47b81b987b7004dd46bf3d07a6baf948469 (patch)
tree53498eedd697d79e31d6aa486e0c31dc588f8caf
parentf1ad240e59cb10936379ead4dd64437cfd95ff4e (diff)
telegram-chat: log command with failed syntax validation
-rw-r--r--telegram-chat1
1 files changed, 1 insertions, 0 deletions
diff --git a/telegram-chat b/telegram-chat
index 51b3572..882ce55 100644
--- a/telegram-chat
+++ b/telegram-chat
@@ -120,6 +120,7 @@ $WaitFullyConnected;
("Output exceeds file read size.") ("No output.") ] ]) });
/file/remove "tmpfs/telegram-chat";
} else={
+ $LogPrintExit2 info $0 ("The command from update " . $UpdateID . " failed syntax validation!") false;
$SendTelegram2 ({ origin=$0; chatid=$ChatID; silent=false; \
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
message=("Command:\n" . $Text . "\n\nThe command failed syntax validation!") });