mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 14:16:42 +02:00
Simplify redis handler code
This commit is contained in:
@@ -45,11 +45,7 @@ class RedisHandler extends AbstractProcessingHandler
|
|||||||
|
|
||||||
protected function write(array $record)
|
protected function write(array $record)
|
||||||
{
|
{
|
||||||
if ($this->redisClient instanceof \Predis\Client) {
|
$this->redisClient->rpush($this->redisKey, $record["formatted"]);
|
||||||
$this->redisClient->rpush($this->redisKey, $record["formatted"]);
|
|
||||||
} else {
|
|
||||||
$this->redisClient->rPush($this->redisKey, $record["formatted"]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user