Browse Source

Logging message added

pull/1912/head
Michael Vogel 7 years ago
parent
commit
ed8cdc7d85
  1. 4
      include/poller.php

4
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"]);

Loading…
Cancel
Save