Skip to content

Commit

Permalink
Randomize service ids of auto generated gelf publishers, fixes #62
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Nov 23, 2013
1 parent f0136f6 commit fc17851
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DependencyInjection/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
$handler['publisher']['chunk_size'],
));

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

case 'mongo':

if (isset($handler['mongo']['id'])) {
$clientId = $handler['mongo']['id'];
} else {
Expand Down

0 comments on commit fc17851

Please sign in to comment.