Replace Logger with DI::logger() in Network classes

This commit is contained in:
Art4 2025-01-13 11:58:29 +00:00
parent c6cef6bbce
commit 0b20a9c923
2 changed files with 39 additions and 40 deletions

View file

@ -7,7 +7,7 @@
namespace Friendica\Network\HTTPClient\Response;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Network\HTTPClient\Capability\ICanHandleHttpResponses;
use GuzzleHttp\Psr7\Response;
use GuzzleHttp\RedirectMiddleware;
@ -65,7 +65,7 @@ class GuzzleResponse extends Response implements ICanHandleHttpResponses, Respon
}
if (!$this->isSuccess) {
Logger::debug('debug', ['info' => $this->getHeaders()]);
DI::logger()->debug('debug', ['info' => $this->getHeaders()]);
}
if (!$this->isSuccess && $this->errorNumber == CURLE_OPERATION_TIMEDOUT) {