Merge pull request #10802 from nupplaphil/feat/webda_storage
Remove disturbing/superfluous logging messages
This commit is contained in:
commit
49310b46d3
|
@ -23,7 +23,6 @@ namespace Friendica\Core\Session\Handler;
|
||||||
|
|
||||||
use Friendica\Core\Cache\ICache;
|
use Friendica\Core\Cache\ICache;
|
||||||
use Friendica\Core\Session;
|
use Friendica\Core\Session;
|
||||||
use Psr\Log\LoggerInterface;
|
|
||||||
use SessionHandlerInterface;
|
use SessionHandlerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,16 +32,10 @@ class Cache implements SessionHandlerInterface
|
||||||
{
|
{
|
||||||
/** @var ICache */
|
/** @var ICache */
|
||||||
private $cache;
|
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->cache = $cache;
|
||||||
$this->logger = $logger;
|
|
||||||
$this->server = $server;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function open($save_path, $session_name)
|
public function open($save_path, $session_name)
|
||||||
|
@ -62,8 +55,6 @@ class Cache implements SessionHandlerInterface
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->logger->notice('no data for session', ['session_id' => $session_id, 'uri' => $this->server['REQUEST_URI'] ?? '']);
|
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ class SessionFactory
|
||||||
if ($config->get('system', 'cache_driver') === Type::DATABASE) {
|
if ($config->get('system', 'cache_driver') === Type::DATABASE) {
|
||||||
$handler = new Session\Handler\Database($dba, $logger, $server);
|
$handler = new Session\Handler\Database($dba, $logger, $server);
|
||||||
} else {
|
} else {
|
||||||
$handler = new Session\Handler\Cache($cache, $logger, $server);
|
$handler = new Session\Handler\Cache($cache);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,6 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->isSuccess) {
|
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()]);
|
Logger::debug('debug', ['info' => $this->getHeaders()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue