mirror of
https://github.com/friendica/friendica
synced 2025-01-30 18:19:47 +00:00
Fix logger calls
This commit is contained in:
parent
d74ca3ecf5
commit
3da2a3ef3d
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue