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 Aug 26, 2019
1 parent 635bb23 commit c83a458
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions DependencyInjection/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,12 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
} else {
$options = new Definition(
'Sentry\\Options',
array(array('dsn' => $handler['dsn']))
array(
array(
'dsn' => $handler['dsn'],
'default_integrations' => false, // prevent sentry from registering shutdown functions
)
)
);

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

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

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

0 comments on commit c83a458

Please sign in to comment.