-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Console errors are displayed twice on screen #27510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Confirmed and I agree it is not desirable. |
Hello, should the |
@modiamir I don't think so. The This affects the most CLI app that don't need a log file. So what about to configure the symfony/src/Symfony/Component/HttpKernel/DependencyInjection/LoggerPass.php Lines 38 to 39 in 4435144
This would avoid to display twice each console error by default. Later, if necessary we can set the min level by configuration: services:
logger:
class: Symfony\Component\HttpKernel\Log\Logger
arguments: ['warning'] |
…yceruto) This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] Change default log level for output streams | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes (visual) | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27510 | License | MIT **BEFORE**  **AFTER**  This should improve the first DX/UX for console-based apps. Commits ------- d69d571 Change default log level for output streams
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 3.4+
Description
This happens when you install a fresh Symfony app.
How to reproduce
$ composer create-project symfony/skeleton foo $ cd foo $ bin/console cache:
Additional context
At this moment, the kernel's
logger
is the one activated in the system, showing error logs onstderr
stream by default.I'm not sure if it's expected, but it looks like a visual issue for CLI apps:

symfony/src/Symfony/Component/HttpKernel/Log/Logger.php
Line 40 in 9a077ca
symfony/src/Symfony/Component/Console/EventListener/ErrorListener.php
Line 46 in 9a077ca
The text was updated successfully, but these errors were encountered: