]> git.mxchange.org Git - friendica.git/commitdiff
add labels for the logger parameters
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 6 Nov 2022 09:11:49 +0000 (10:11 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 7 Nov 2022 10:19:33 +0000 (11:19 +0100)
src/Worker/CheckRelMeProfileLink.php

index 1bf67367ffea35efd4314c450bb8f0adc7b9dd50..7943709d99729c322638fc4ba18c88eda1f0fd4e 100644 (file)
@@ -54,7 +54,7 @@ class CheckRelMeProfileLink
         */
        public static function execute(int $uid)
        {
-               Logger::notice('Verifying the homepage', [$uid]);
+               Logger::notice('Verifying the homepage', ['uid' => $uid]);
                Profile::update(['homepage_verified' => false], $uid);
                $homepageUrlVerified = false;
                $owner = User::getOwnerDataById($uid);
@@ -64,7 +64,7 @@ class CheckRelMeProfileLink
                        if ($curlResult->isSuccess()) {
                                $content = $curlResult->getBody();
                                if (!$content) {
-                                       Logger::notice('Empty body of the fetched homepage link). Cannot verify the relation to profile of UID %s.', [$uid, $owner['homepage']]);
+                                       Logger::notice('Empty body of the fetched homepage link). Cannot verify the relation to profile of UID %s.', ['uid' => $uid, 'owner homepage' => $owner['homepage']]);
                                } else {
                                        $doc = new DOMDocument();
                                        $doc->loadHTML($content);
@@ -83,16 +83,16 @@ class CheckRelMeProfileLink
                                        }
                                        if ($homepageUrlVerified) {
                                                Profile::update(['homepage_verified' => true], $uid);
-                                               Logger::notice('Homepage URL verified', [$uid, $owner['homepage']]);
+                                               Logger::notice('Homepage URL verified', ['uid' => $uid, 'owner homepage' => $owner['homepage']]);
                                        } else {
-                                               Logger::notice('Homepage URL could not be verified', [$uid, $owner['homepage']]);
+                                               Logger::notice('Homepage URL could not be verified', ['uid' => $uid, 'owner homepage' => $owner['homepage']]);
                                        }
                                }
                        } else {
-                               Logger::notice('Could not cURL the homepage URL', [$owner['homepage']]);
+                               Logger::notice('Could not cURL the homepage URL', ['owner homepage' => $owner['homepage']]);
                        }
                } else {
-                       Logger::notice('The user has no homepage link.', [$uid]);
+                       Logger::notice('The user has no homepage link.', ['uid' => $uid]);
                }
        }
 }