Fixed logger call

This commit is contained in:
Michael 2019-12-21 04:23:26 +00:00
parent 01205f7d41
commit 4024d725db
3 changed files with 6 additions and 6 deletions

View file

@ -23,6 +23,6 @@ class CheckServer
} }
$ret = GServer::check($server_url); $ret = GServer::check($server_url);
Logger::log('Checking server', ['url' => $server_url, 'result' => $ret]); Logger::info('Checked server', ['url' => $server_url, 'result' => $ret]);
} }
} }

View file

@ -64,15 +64,15 @@ class SearchDirectory
$server_url = Contact::getBasepath($jj->url); $server_url = Contact::getBasepath($jj->url);
if ($server_url != '') { if ($server_url != '') {
if (!GServer::check($server_url)) { if (!GServer::check($server_url)) {
Logger::log("Friendica server doesn't answer.", ['server' => $server_url]); Logger::info("Friendica server doesn't answer.", ['server' => $server_url]);
continue; continue;
} }
Logger::log('Friendica server seems to be okay.', ['server' => $server_url]); Logger::info('Friendica server seems to be okay.', ['server' => $server_url]);
} }
$data = Probe::uri($jj->url); $data = Probe::uri($jj->url);
if ($data['network'] == Protocol::DFRN) { if ($data['network'] == Protocol::DFRN) {
Logger::log('Add profile to local directory', ['profile' => $jj->url]); Logger::info('Add profile to local directory', ['profile' => $jj->url]);
if ($jj->tags != '') { if ($jj->tags != '') {
$data['keywords'] = $jj->tags; $data['keywords'] = $jj->tags;
@ -82,7 +82,7 @@ class SearchDirectory
GContact::update($data); GContact::update($data);
} else { } else {
Logger::log('Profile is not responding or no Friendica contact', ['profile' => $jj->url, 'network' => $data['network']]); Logger::info('Profile is not responding or no Friendica contact', ['profile' => $jj->url, 'network' => $data['network']]);
} }
} }
} }

View file

@ -24,7 +24,7 @@ class UpdateServers
$updated = 0; $updated = 0;
while ($gserver == DBA::fetch($gservers)) { while ($gserver = DBA::fetch($gservers)) {
if (!PortableContact::updateNeeded($gserver['created'], '', $gserver['last_failure'], $gserver['last_contact'])) { if (!PortableContact::updateNeeded($gserver['created'], '', $gserver['last_failure'], $gserver['last_contact'])) {
continue; continue;
} }