From: Michael Date: Tue, 29 Mar 2022 17:26:31 +0000 (+0000) Subject: Added logging X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3e21b035b72252ca765cbae20ce8550f349e84ef;p=friendica.git Added logging --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 1a44bcbc00..b347f235a9 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1532,6 +1532,7 @@ class Probe self::$istimeout = true; return $short ? false : []; } + Logger::debug('Fetched public key', ['Content-Type' => $curlResult->getHeader('Content-Type'), 'url' => $pubkey]); $pubkey = $curlResult->getBody(); } diff --git a/src/Protocol/Salmon.php b/src/Protocol/Salmon.php index 12d05f9b3d..4fcef91773 100644 --- a/src/Protocol/Salmon.php +++ b/src/Protocol/Salmon.php @@ -74,6 +74,7 @@ class Salmon } } elseif (Strings::normaliseLink($ret[$x]) == 'http://') { $ret[$x] = DI::httpClient()->fetch($ret[$x], 0, HttpClient::ACCEPT_DEFAULT); + Logger::debug('Fetched public key', ['url' => $ret[$x]]); } } }