mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Replace Logger with DI::logger() in Network classes
This commit is contained in:
parent
c6cef6bbce
commit
0b20a9c923
2 changed files with 39 additions and 40 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue