We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b928039 + 39c7e04 commit d25bb38Copy full SHA for d25bb38
src/Monolog/Handler/RedisHandler.php
@@ -73,7 +73,8 @@ protected function write(array $record)
73
protected function writeCapped(array $record)
74
{
75
if ($this->redisClient instanceof \Redis) {
76
- $this->redisClient->multi()
+ $mode = defined('\Redis::MULTI') ? \Redis::MULTI : 1;
77
+ $this->redisClient->multi($mode)
78
->rpush($this->redisKey, $record["formatted"])
79
->ltrim($this->redisKey, -$this->capSize, -1)
80
->exec();
0 commit comments