Skip to content

Commit

Permalink
Merge pull request #160 from AkshayBz/master
Browse files Browse the repository at this point in the history
Add `auto_log_stacks` param support for Sentry (Raven Client)
  • Loading branch information
Seldaek committed Mar 2, 2016
2 parents 27c2e3e + 519620d commit d4d933a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DependencyInjection/Configuration.php
Expand Up @@ -168,6 +168,7 @@
* - client_id: Raven client custom service id (optional)
* - [level]: level name or int value, defaults to DEBUG
* - [bubble]: bool, defaults to true
* - [auto_stack_logs]: bool, defaults to false
*
* - newrelic:
* - [level]: level name or int value, defaults to DEBUG
Expand Down Expand Up @@ -472,6 +473,7 @@ public function getConfigTreeBuilder()
->booleanNode('persistent')->end() // socket_handler
->scalarNode('dsn')->end() // raven_handler
->scalarNode('client_id')->defaultNull()->end() // raven_handler
->scalarNode('auto_log_stacks')->defaultFalse()->end() // raven_handler
->scalarNode('message_type')->defaultValue(0)->end() // error_log
->arrayNode('tags') // loggly
->beforeNormalization()
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/MonologExtension.php
Expand Up @@ -546,6 +546,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
} else {
$client = new Definition('Raven_Client', array(
$handler['dsn'],
array('auto_log_stacks' => $handler['auto_log_stacks'])
));
$client->setPublic(false);
$clientId = 'monolog.raven.client.'.sha1($handler['dsn']);
Expand Down

0 comments on commit d4d933a

Please sign in to comment.