Remove disturbing/superfluous logging messages
This commit is contained in:
parent
1047ad7bc2
commit
80753ed1b6
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue