Browse Source

Some better logging

pull/2159/head
Michael Vogel 6 years ago
parent
commit
fbbba6828b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/poller.php

+ 2
- 2
include/poller.php View File

@ -104,10 +104,10 @@ function poller_run(&$argv, &$argc){
$funcname=str_replace(".php", "", basename($argv[0]))."_run";
if (function_exists($funcname)) {
logger("Process ".getmypid().": ".$funcname." ".$r[0]["parameter"]);
logger("Process ".getmypid()." - ID ".$r[0]["id"].": ".$funcname." ".$r[0]["parameter"]);
$funcname($argv, $argc);
logger("Process ".getmypid().": ".$funcname." - done");
logger("Process ".getmypid()." - ID ".$r[0]["id"].": ".$funcname." - done");
q("DELETE FROM `workerqueue` WHERE `id` = %d", intval($r[0]["id"]));
} else


Loading…
Cancel
Save