Added logging

This commit is contained in:
Michael 2022-03-29 17:26:31 +00:00
parent 94b7c1fc77
commit 3e21b035b7
2 changed files with 2 additions and 0 deletions

View file

@ -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();
}

View file

@ -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]]);
}
}
}