mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 17:16:18 +02:00
Bugfix
This commit is contained in:
@@ -18,18 +18,18 @@ namespace Monolog\Processor;
|
||||
*/
|
||||
class UidProcessor
|
||||
{
|
||||
private static $uid;
|
||||
private $uid;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
if (null === self::$uid) {
|
||||
self::$uid = substr(hash('md5', uniqid('', true)), 0, 7);
|
||||
if (null === $this->uid) {
|
||||
$this->uid = substr(hash('md5', uniqid('', true)), 0, 7);
|
||||
}
|
||||
}
|
||||
|
||||
public function __invoke(array $record)
|
||||
{
|
||||
$record['extra']['uid'] = self::$uid;
|
||||
$record['extra']['uid'] = $this->uid;
|
||||
|
||||
return $record;
|
||||
}
|
||||
|
Reference in New Issue
Block a user