Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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