Merge pull request #10802 from nupplaphil/feat/webda_storage

Remove disturbing/superfluous logging messages
This commit is contained in:
Michael Vogel 2021-10-02 23:19:35 +02:00 committed by GitHub
commit 49310b46d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
$this->cache = $cache;
}
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()]);
}