]> git.mxchange.org Git - friendica.git/commitdiff
Updated logging
authorMichael <heluecht@pirati.ca>
Wed, 28 Dec 2022 16:04:31 +0000 (16:04 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 28 Dec 2022 16:04:31 +0000 (16:04 +0000)
src/Worker/UpdateContacts.php

index 45a1417e1a814170e465b250fb9e9afc681f877b..881418dc11f6f3cfed82add4c1188d199ab0cf8d 100644 (file)
@@ -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();