]> git.mxchange.org Git - friendica.git/commitdiff
Logging message added
authorMichael Vogel <icarus@dabo.de>
Mon, 28 Sep 2015 20:32:56 +0000 (22:32 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 28 Sep 2015 20:32:56 +0000 (22:32 +0200)
include/poller.php

index 942fb6eafb248bd44169d2812e4a84259cfe52aa..ab7deb6e0ac028c669a869945607e0b31daaaafd 100644 (file)
@@ -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"]);