From 954b95b039ccd481550438a98bc592ce8f08fe96 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 28 Dec 2022 16:04:31 +0000 Subject: [PATCH] Updated logging --- src/Worker/UpdateContacts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Worker/UpdateContacts.php b/src/Worker/UpdateContacts.php index 45a1417e1a..881418dc11 100644 --- a/src/Worker/UpdateContacts.php +++ b/src/Worker/UpdateContacts.php @@ -66,9 +66,10 @@ class UpdateContacts if ((!empty($contact['gsid']) || !empty($contact['baseurl'])) && GServer::reachable($contact)) { $stamp = (float)microtime(true); $success = Contact::updateFromProbe($contact['id']); - Logger::debug('Direct update', ['id' => $contact['id'], 'duration' => round((float)microtime(true) - $stamp, 3), 'success' => $success]); + Logger::debug('Direct update', ['id' => $contact['id'], 'count' => $count, 'duration' => round((float)microtime(true) - $stamp, 3), 'success' => $success]); ++$count; } elseif (Worker::add(['priority' => Worker::PRIORITY_LOW, 'dont_fork' => true], 'UpdateContact', $contact['id'])) { + Logger::debug('Update by worker', ['id' => $contact['id'], 'count' => $count]); ++$count; } Worker::coolDown(); -- 2.39.5