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

Commit 8d6f97b

Browse files
committed
bug #911 ignore event and doctrine logs in console (Tobion)
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
2 parents b7f3157 + 827ec90 commit 8d6f97b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

app/config/config_dev.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,7 @@ monolog:
2121
console:
2222
type: console
2323
bubble: false
24-
verbosity_levels:
25-
VERBOSITY_VERBOSE: INFO
26-
VERBOSITY_VERY_VERBOSE: DEBUG
27-
channels: ["!doctrine"]
28-
console_very_verbose:
29-
type: console
30-
bubble: false
31-
verbosity_levels:
32-
VERBOSITY_VERBOSE: NOTICE
33-
VERBOSITY_VERY_VERBOSE: NOTICE
34-
VERBOSITY_DEBUG: DEBUG
35-
channels: ["doctrine"]
24+
channels: [!event, !doctrine]
3625
# uncomment to get logging in your browser
3726
# you may have to allow bigger header sizes in your Web server configuration
3827
#firephp:

0 commit comments

Comments
 (0)