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

Don't log console errors in console output #1044

Merged
merged 1 commit into from
Feb 1, 2017

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Jan 26, 2017

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

After
after

If one wants the trace, then one can run the command in verbose mode or look at its log file.

@chalasr
Copy link
Member Author

chalasr commented Jan 26, 2017

cc @jameshalsall

@jameshalsall
Copy link

Great catch @chalasr :) thanks

@fabpot
Copy link
Member

fabpot commented Feb 1, 2017

Thank you @chalasr.

@fabpot fabpot merged commit 2bf1249 into symfony:master Feb 1, 2017
fabpot added a commit that referenced this pull request Feb 1, 2017
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
@chalasr chalasr deleted the dont-log-console-errors-in-stderr branch February 1, 2017 21:56
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.

3 participants