mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-03 03:37:34 +02:00
fixes reference for 5.3 in predis callback
This commit is contained in:
@@ -79,9 +79,11 @@ class RedisHandler extends AbstractProcessingHandler
|
|||||||
->ltrim($this->redisKey, 0, $this->capSize)
|
->ltrim($this->redisKey, 0, $this->capSize)
|
||||||
->execute();
|
->execute();
|
||||||
} else {
|
} else {
|
||||||
$this->redisClient->transaction(function($tx) use($record) {
|
$redisKey = $this->redisKey;
|
||||||
$tx->lpush($this->redisKey, $record["formatted"]);
|
$capSize = $this->capSize;
|
||||||
$tx->ltrim($this->redisKey, 0, $this->capSize);
|
$this->redisClient->transaction(function($tx) use($record, $redisKey, $capSize) {
|
||||||
|
$tx->lpush($redisKey, $record["formatted"]);
|
||||||
|
$tx->ltrim($redisKey, 0, $capSize);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user