]> git.mxchange.org Git - friendica.git/commitdiff
Some better logging
authorMichael Vogel <icarus@dabo.de>
Sun, 6 Dec 2015 19:04:33 +0000 (20:04 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 6 Dec 2015 19:04:33 +0000 (20:04 +0100)
include/poller.php

index 06a5314a4f3b6d6e29dbdd375610c8b705e61a3b..8c102a66b99bd6066010c5df7f2761362d6833ed 100644 (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