Skip to content

Commit

Permalink
Disable sentry's default integrations when using it
Browse files Browse the repository at this point in the history
Monolog already does it, so...
  • Loading branch information
Taluu committed Sep 3, 2019
1 parent fabf119 commit 03d3f29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DependencyInjection/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,10 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
} else {
$options = new Definition(
'Sentry\\Options',
[['dsn' => $handler['dsn']]]
[[
'dsn' => $handler['dsn'],
'default_integrations' => false, // prevent sentry from registering shutdown functions
]]
);

if (!empty($handler['environment'])) {
Expand Down Expand Up @@ -710,9 +713,6 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
[new Reference($clientId)]
);

// can't set the hub to the current hub, getting into a recursion otherwise...
//$hub->addMethodCall('setCurrent', array($hub));

$definition->setArguments([
$hub,
$handler['level'],
Expand Down

0 comments on commit 03d3f29

Please sign in to comment.