Skip to content

Commit 2a3de03

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

DependencyInjection/MonologExtension.php

Lines changed: 6 additions & 1 deletion
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'])) {

0 commit comments

Comments
 (0)