]> git.mxchange.org Git - friendica.git/commitdiff
Added logging
authorMichael <heluecht@pirati.ca>
Tue, 29 Mar 2022 17:26:31 +0000 (17:26 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 29 Mar 2022 17:26:31 +0000 (17:26 +0000)
src/Network/Probe.php
src/Protocol/Salmon.php

index 1a44bcbc00319439c8bd374f2e86bcfe031ecc1b..b347f235a968fa4c2c418ee56af0a195d5d6bba3 100644 (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();
                                        }
 
index 12d05f9b3d029db2c5334a1e6047c312789b30f4..4fcef9177317024704ce5d2a30cde595a01b6ddc 100644 (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]]);
                                }
                        }
                }