From ed8cdc7d8502b03ca9096b4d4a4c5fd9d149d08f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 28 Sep 2015 22:32:56 +0200 Subject: [PATCH] Logging message added --- include/poller.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/poller.php b/include/poller.php index 942fb6eafb..ab7deb6e0a 100644 --- a/include/poller.php +++ b/include/poller.php @@ -85,8 +85,10 @@ function poller_run(&$argv, &$argc){ $id = q("SELECT `id` FROM `workerqueue` WHERE `id` = %d AND `pid` = %d", intval($r[0]["id"]), intval(getmypid())); - if (!$id) + if (!$id) { + logger("Queue item ".$r[0]["id"]." was executed multiple times - quitting this one", LOGGER_DEBUG); continue; + } $argv = json_decode($r[0]["parameter"]); -- 2.39.5