]> git.mxchange.org Git - friendica.git/commitdiff
Fix logger calls
authorMichael <heluecht@pirati.ca>
Wed, 22 Jan 2025 21:02:15 +0000 (21:02 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 22 Jan 2025 21:02:15 +0000 (21:02 +0000)
src/Worker/UpdateContact.php

index 24c65a3d3cb5d3a54b5d5ca4f223beed4870f225..6928b0c2f242968fe9fa4de8845d34c4b42aebeb 100644 (file)
@@ -69,22 +69,22 @@ class UpdateContact
                }
 
                if (DI::config()->get('system', 'update_known_contacts') && ($contact['uid'] == 0) && !Contact::hasRelations($contact_id)) {
-                       Logger::debug('No local relations, contact will not be updated', ['id' => $contact_id, 'url' => $contact['url'], 'network' => $contact['network']]);
+                       DI::logger()->debug('No local relations, contact will not be updated', ['id' => $contact_id, 'url' => $contact['url'], 'network' => $contact['network']]);
                        return false;
                }
 
                if (DI::config()->get('system', 'update_active_contacts') && $contact['local-data']) {
-                       Logger::debug('No local data, contact will not be updated', ['id' => $contact_id, 'url' => $contact['url'], 'network' => $contact['network']]);
+                       DI::logger()->debug('No local data, contact will not be updated', ['id' => $contact_id, 'url' => $contact['url'], 'network' => $contact['network']]);
                        return false;
                }
 
                if (Contact::isLocal($contact['url'])) {
-                       Logger::debug('Local contact will not be updated', ['id' => $contact_id, 'url' => $contact['url'], 'network' => $contact['network']]);
+                       DI::logger()->debug('Local contact will not be updated', ['id' => $contact_id, 'url' => $contact['url'], 'network' => $contact['network']]);
                        return false;
                }
 
                if (!Protocol::supportsProbe($contact['network'])) {
-                       Logger::debug('Contact does not support probe, it will not be updated', ['id' => $contact_id, 'url' => $contact['url'], 'network' => $contact['network']]);
+                       DI::logger()->debug('Contact does not support probe, it will not be updated', ['id' => $contact_id, 'url' => $contact['url'], 'network' => $contact['network']]);
                        return false;
                }