Skip to content

Commit c83a458

Browse files
committed
Disable sentry's default integrations when using it
Monolog already does it, so...
1 parent 635bb23 commit c83a458

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

DependencyInjection/MonologExtension.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,12 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
674674
} else {
675675
$options = new Definition(
676676
'Sentry\\Options',
677-
array(array('dsn' => $handler['dsn']))
677+
array(
678+
array(
679+
'dsn' => $handler['dsn'],
680+
'default_integrations' => false, // prevent sentry from registering shutdown functions
681+
)
682+
)
678683
);
679684

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

706-
// can't set the hub to the current hub, getting into a recursion otherwise...
707-
//$hub->addMethodCall('setCurrent', array($hub));
708-
709711
$definition->setArguments(array(
710712
$hub,
711713
$handler['level'],

0 commit comments

Comments
 (0)