Skip to content

Commit fc17851

Browse files
committed
Randomize service ids of auto generated gelf publishers, fixes #62
1 parent f0136f6 commit fc17851

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DependencyInjection/MonologExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
156156
$handler['publisher']['chunk_size'],
157157
));
158158

159-
$publisherId = 'monolog.gelf.publisher';
159+
$publisherId = uniqid('monolog.gelf.publisher.');
160160
$publisher->setPublic(false);
161161
$container->setDefinition($publisherId, $publisher);
162162
}
@@ -169,7 +169,6 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
169169
break;
170170

171171
case 'mongo':
172-
173172
if (isset($handler['mongo']['id'])) {
174173
$clientId = $handler['mongo']['id'];
175174
} else {

0 commit comments

Comments
 (0)