]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Worker.php
One more notice (#5429)
[friendica.git] / src / Core / Worker.php
index f649e7773e3b8725129571b735996d974c62461a..633b8e12e93dec5ccdc10a1cf18b7fb69f2b0d21 100644 (file)
@@ -577,7 +577,7 @@ class Worker
                                // How long is the process already running?
                                $duration = (time() - strtotime($entry["executed"])) / 60;
                                if ($duration > $max_duration) {
-                                       logger("Worker process ".$entry["pid"]." (".implode(" ", $argv).") took more than ".$max_duration." minutes. It will be killed now.");
+                                       logger("Worker process ".$entry["pid"]." (".substr(json_encode($argv), 0, 50).") took more than ".$max_duration." minutes. It will be killed now.");
                                        posix_kill($entry["pid"], SIGTERM);
 
                                        // We killed the stale process.