aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/QueueWorker.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-10-20 09:30:52 +0000
committerMario <mario@mariovavti.com>2023-10-20 09:30:52 +0000
commitbd9cc23681cf71938cccffef3c2b23a1d76c60b4 (patch)
treed83ed1521b4fb8f4b3466c4db814b7597d96c30a /Zotlabs/Lib/QueueWorker.php
parentf2d7298cf4f81674c808c34ea35d7c7de98b6de1 (diff)
downloadvolse-hubzilla-bd9cc23681cf71938cccffef3c2b23a1d76c60b4.tar.gz
volse-hubzilla-bd9cc23681cf71938cccffef3c2b23a1d76c60b4.tar.bz2
volse-hubzilla-bd9cc23681cf71938cccffef3c2b23a1d76c60b4.zip
update logger statements
Diffstat (limited to 'Zotlabs/Lib/QueueWorker.php')
-rw-r--r--Zotlabs/Lib/QueueWorker.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Lib/QueueWorker.php b/Zotlabs/Lib/QueueWorker.php
index 1c74b42d8..68e747b0f 100644
--- a/Zotlabs/Lib/QueueWorker.php
+++ b/Zotlabs/Lib/QueueWorker.php
@@ -63,6 +63,8 @@ class QueueWorker {
return;
}
+ logger('queueworker_stats_summon: cmd:' . $argv[0] . ' ' . 'timestamp:' . time());
+
self::qstart();
$r = q("INSERT INTO workerq (workerq_priority, workerq_data, workerq_uuid, workerq_cmd) VALUES (%d, '%s', '%s', '%s')",
intval($priority),
@@ -299,12 +301,16 @@ class QueueWorker {
$cls = '\\Zotlabs\\Daemon\\' . $argv[0];
$argv = flatten_array_recursive($argv);
$argc = count($argv);
- $rnd = random_string();
+ $rnd = random_string(16);
logger('PROCESSING: ' . $rnd . ' ' . print_r($argv[0], true));
+ $start_timestamp = microtime(true);
+
$cls::run($argc, $argv);
+ logger('logger_stats_data cmd:' . $argv[0] . ' start:' . $start_timestamp . ' ' . 'end:' . microtime(true) . ' meta:' . $rnd);
+
logger('COMPLETED: ' . $rnd);
// @FIXME: Right now we assume that if we get a return, everything is OK.