8000 Use DebugProcessor instead of DebugHandler when available in MonologServiceProvider by nicolas-grekas · Pull Request #1444 · silexphp/Silex · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jul 4, 2018. It is now read-only.

Use DebugProcessor instead of DebugHandler when available in MonologServiceProvider #1444

Merged
merged 1 commit into from
Nov 6, 2016
Merged

Use DebugProcessor instead of DebugHandler when available in MonologServiceProvider #1444

merged 1 commit into from
Nov 6, 2016

Conversation

nicolas-grekas
Copy link
Contributor

@@ -62,8 +63,12 @@ public function register(Container $app)

$log->pushHandler($handler);

if ($app['debug'] && isset($app['monolog.handler.debug'])) {
$log->pushHandler($app['monolog.handler.debug']);
if ($app['debug'] && $bridge) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure it works? $bridge is not defined in this scope.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oups, indeed, fixed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which means that this path is not tested at all. Could you add a test?

@fabpot
Copy link
Member
fabpot commented Nov 6, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 213741a into silexphp:master Nov 6, 2016
fabpot added a commit that referenced this pull request Nov 6, 2016
…le in MonologServiceProvider (nicolas-grekas)

This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Use DebugProcessor instead of DebugHandler when available in MonologServiceProvider

Related to symfony/symfony#20416

Commits
-------

213741a Use DebugProcessor instead of DebugHandler when available in MonologServiceProvider
@nicolas-grekas nicolas-grekas deleted the debug-processor branch November 6, 2016 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0