aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-12-10 09:53:43 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-12-10 09:53:43 +0100
commit158c27e293eccc07a235883443277a15abee9b64 (patch)
tree98f73ea11a6c906858286e7b1433193540decea2
parentadf35f3b16d0630785d5aa00420c03da6d5ba7ea (diff)
global-functions: $FlushTelegramQueue: log warning on empty queue...
... if scheduler exists.
-rw-r--r--global-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index fadd2c6..0530564 100644
--- a/global-functions
+++ b/global-functions
@@ -291,6 +291,11 @@
:local AllDone true;
:local QueueLen [ :len $TelegramQueue ];
+
+ :if ([ :len [ / system scheduler find where name="FlushTelegramQueue" ] ] > 0 && $QueueLen = 0) do={
+ $LogPrintExit warning ("Flushing Telegram messages from scheduler, but queue is empty.") false;
+ }
+
:foreach Id,Message in=$TelegramQueue do={
:if ([ :typeof $Message ] = "array" ) do={
:do {