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

Commit a9c4e32

Browse files
committed
minor #1044 Don't log console errors in console output (chalasr)
This PR was merged into the 3.3-dev branch. Discussion ---------- Don't log console errors in console output Since symfony/symfony#21003, console errors are logged, and since the `console` channel is not ignored by the monolog console handler, the log is written to stderr. IMHO it's useless since the ran command already write the message into, it's just having two traces for the same error, which doesn't make sense to me. I propose to fix that. __Before__ ![before](http://image.prntscr.com/image/16a2773542ee4a0caeaf626b119d5c18.png) __After__ ![after](http://image.prntscr.com/image/facb6641ffdf4df5af90d203c6327fb5.png) If one wants the trace, then one can run the command in verbose mode or look at its log file. Commits ------- 2bf1249 Don't log console errors in console output
2 parents 2fdb682 + 2bf1249 commit a9c4e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/config/config_dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ monolog:
2020
channels: [!event]
2121
console:
2222
type: console
23-
channels: [!event, !doctrine]
23+
channels: [!event, !doctrine, !console]
2424
# uncomment to get logging in your browser
2525
# you may have to allow bigger header sizes in your Web server configuration
2626
#firephp:

0 commit comments

Comments
 (0)