Skip to content

ConsoleHandler never outputs anything if output->getVerbosity() == VERBOSITY_QUIET #18767

Closed
@multi-io

Description

@multi-io

https://github.com/symfony/symfony/blob/v3.0.6/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php#L175

That seems wrong. An Output configured as VERBOSITY_QUIET (which is triggered e.g. by running a console command with -q) doesn't mean that nothing should be printed, just very little. E.g. unhandled console command exceptions get reported under VERBOSITY_QUIET. The ConsoleHandler is apparently hard-coded to never output anything to such an output, even though its behaviour is otherwise supposed to be configurable via the verbosityLevelMap parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions