Log DB
This commit is contained in:
@ -18,7 +18,7 @@ class Errors
|
||||
try {
|
||||
return $handler->handle($request);
|
||||
} catch (Exception $exception) {
|
||||
$this->logger->notice($exception);
|
||||
$this->logger->warning($exception);
|
||||
} catch (Error $error) {
|
||||
$this->logger->error($error);
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
namespace Incoviba\Service;
|
||||
|
||||
use Predis\Client;
|
||||
use Predis\ClientInterface;
|
||||
use Incoviba\Common\Implement\Exception\EmptyRedis;
|
||||
|
||||
class Redis
|
||||
{
|
||||
public function __construct(protected Client $client) {}
|
||||
public function __construct(protected ClientInterface $client) {}
|
||||
|
||||
public function get(string $name): mixed
|
||||
{
|
||||
|
Reference in New Issue
Block a user