Remove disturbing/superfluous logging messages

This commit is contained in:
Philipp 2021-10-02 22:20:39 +02:00
parent 1047ad7bc2
commit 80753ed1b6
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
3 changed files with 3 additions and 13 deletions

View File

@ -23,7 +23,6 @@ namespace Friendica\Core\Session\Handler;
use Friendica\Core\Cache\ICache;
use Friendica\Core\Session;
use Psr\Log\LoggerInterface;
use SessionHandlerInterface;
/**
@ -33,16 +32,10 @@ class Cache implements SessionHandlerInterface
{
/** @var ICache */
private $cache;
/** @var LoggerInterface */
private $logger;
/** @var array The $_SERVER array */
private $server;
public function __construct(ICache $cache, LoggerInterface $logger, array $server)
public function __construct(ICache $cache)
{
$this->cache = $cache;
$this->logger = $logger;
$this->server = $server;
}
public function open($save_path, $session_name)
@ -62,8 +55,6 @@ class Cache implements SessionHandlerInterface
return $data;
}
$this->logger->notice('no data for session', ['session_id' => $session_id, 'uri' => $this->server['REQUEST_URI'] ?? '']);
return '';
}

View File

@ -77,7 +77,7 @@ class SessionFactory
if ($config->get('system', 'cache_driver') === Type::DATABASE) {
$handler = new Session\Handler\Database($dba, $logger, $server);
} else {
$handler = new Session\Handler\Cache($cache, $logger, $server);
$handler = new Session\Handler\Cache($cache);
}
break;
}

View File

@ -68,7 +68,6 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface
}
if (!$this->isSuccess) {
Logger::notice('http error', ['url' => $this->url, 'code' => $this->getReturnCode(), 'error' => $this->error, 'callstack' => System::callstack(20)]);
Logger::debug('debug', ['info' => $this->getHeaders()]);
}