Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

ignore event and doctrine logs in console #911

Merged
merged 1 commit into from
Dec 18, 2015
Merged

ignore event and doctrine logs in console #911

merged 1 commit into from
Dec 18, 2015

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Dec 15, 2015

Follow up on #908 to also ignore event logs in console. And simplify #707 to just ignore doctrine logs as well. #707 was not good because it creates inconsistencies between prod and dev environment. I.e. -vv has different result in prod and dev environment because the verbosity_level map is different which is really unexpected if you want to process stderr log in prod environment but they are not there.

So this gets rid these messages when running app/console -vvv

[2015-12-15 16:40:04] event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2015-12-15 16:40:04] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []

@javiereguiluz
Copy link
Member

👍 nice! Thanks @Tobion.

@fabpot
Copy link
Member

fabpot commented Dec 15, 2015

LGTM (/cc @nicolas-grekas)

@Pierstoval
Copy link
Contributor

👍 So much code to remove for good :)

@fabpot
Copy link
Member

fabpot commented Dec 18, 2015

Thank you @Tobion.

@fabpot fabpot merged commit 827ec90 into symfony:2.7 Dec 18, 2015
fabpot added a commit that referenced this pull request Dec 18, 2015
This PR was merged into the 2.7 branch.

Discussion
----------

ignore event and doctrine logs in console

Follow up on #908 to also ignore event logs in console. And simplify #707 to just ignore doctrine logs as well. #707 was not good because it creates inconsistencies between prod and dev environment. I.e. `-vv` has different result in prod and dev environment because the verbosity_level map is different which is really unexpected if you want to process stderr log in prod environment but they are not there.

So this gets rid these messages when running `app/console -vvv`

```
[2015-12-15 16:40:04] event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2015-12-15 16:40:04] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []
```

Commits
-------

827ec90 ignore event and doctrine logs in console
@Tobion Tobion deleted the ignore-event-logs-in-console branch December 18, 2015 17:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants