1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Simplify redis handler code

This commit is contained in:
Jordi Boggiano
2013-02-13 18:35:40 +01:00
parent cb67b5e545
commit 7f25d28a10

View File

@@ -45,11 +45,7 @@ class RedisHandler extends AbstractProcessingHandler
protected function write(array $record)
{
if ($this->redisClient instanceof \Predis\Client) {
$this->redisClient->rpush($this->redisKey, $record["formatted"]);
} else {
$this->redisClient->rPush($this->redisKey, $record["formatted"]);
}
$this->redisClient->rpush($this->redisKey, $record["formatted"]);
}
/**