]> git.mxchange.org Git - friendica.git/commitdiff
Fixed logger call
authorMichael <heluecht@pirati.ca>
Sat, 21 Dec 2019 04:23:26 +0000 (04:23 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 21 Dec 2019 04:23:26 +0000 (04:23 +0000)
src/Worker/CheckServer.php
src/Worker/SearchDirectory.php
src/Worker/UpdateServers.php

index d51b728883246ee5e5c08c6436e77ed2882ad580..ad78d7d255ae1cb5ac8fd26634a36961ee82b6df 100644 (file)
@@ -23,6 +23,6 @@ class CheckServer
                }
 
                $ret = GServer::check($server_url);
-               Logger::log('Checking server', ['url' => $server_url, 'result' => $ret]);
+               Logger::info('Checked server', ['url' => $server_url, 'result' => $ret]);
        }
 }
index 0f5782db5584629f46ef6dda86a4abd5701995ff..63bc4e0d84e56ea6b4eaa8f46937035b17505163 100644 (file)
@@ -64,15 +64,15 @@ class SearchDirectory
                                $server_url = Contact::getBasepath($jj->url);
                                if ($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;
                                        }
-                                       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);
                                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 != '') {
                                                $data['keywords'] = $jj->tags;
@@ -82,7 +82,7 @@ class SearchDirectory
 
                                        GContact::update($data);
                                } 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']]);
                                }
                        }
                }
index d879c5f204b2e3ade02d8e91c457fb5e117d014e..4097832989579be1d85c7aa249a20be842000b57 100644 (file)
@@ -24,7 +24,7 @@ class UpdateServers
 
                $updated = 0;
 
-               while ($gserver == DBA::fetch($gservers)) {
+               while ($gserver = DBA::fetch($gservers)) {
                        if (!PortableContact::updateNeeded($gserver['created'], '', $gserver['last_failure'], $gserver['last_contact'])) {
                                continue;
                        }