mirror of
https://github.com/friendica/friendica
synced 2025-02-07 06:58:50 +00:00
Replace Logger with DI::logger() in ZOT Protocol class
This commit is contained in:
parent
ab1e0638fb
commit
6de75e4b9b
1 changed files with 1 additions and 2 deletions
|
@ -9,7 +9,6 @@ namespace Friendica\Protocol;
|
||||||
|
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\Core\Addon;
|
use Friendica\Core\Addon;
|
||||||
use Friendica\Core\Logger;
|
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Friendica\Module;
|
use Friendica\Module;
|
||||||
use Friendica\Module\Register;
|
use Friendica\Module\Register;
|
||||||
|
@ -30,7 +29,7 @@ class ZOT
|
||||||
public static function isRequest(): bool
|
public static function isRequest(): bool
|
||||||
{
|
{
|
||||||
if (stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/x-zot+json')) {
|
if (stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/x-zot+json')) {
|
||||||
Logger::debug('Is ZOT request', ['accept' => $_SERVER['HTTP_ACCEPT'], 'agent' => $_SERVER['HTTP_USER_AGENT'] ?? '']);
|
DI::logger()->debug('Is ZOT request', ['accept' => $_SERVER['HTTP_ACCEPT'], 'agent' => $_SERVER['HTTP_USER_AGENT'] ?? '']);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue