Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messenger] Failed messages command writes to STDERR #60822

Open
@cs278

Description

@cs278

Symfony version(s) affected

6.4.21

Description

Whilst trying to investigate why we have 1000+ failed messages I tried to pipe the output from messenger:failed:show into a pager so I could scroll through the output, but the output is written to STDERR instead of STDOUT. Obviously I can workaround this by redirecting the output but this is not normal behaviour.

How to reproduce

bin/console messenger:failed:show --max 10000 | less

Observe output is written straight out and the pager is empty.

Possible Solution

Write the useful output to STDOUT.

Additional Context

Seems to be a problem with other messenger commands as well:

[email protected]:~$ bin/console cache:pool:list | wc -l
21
[email protected]:~$ bin/console messenger:stats | wc -l
 ----------------------- ------- 
  Transport               Count  
 ----------------------- ------- 
  high                    0      
  low                     0      
  failed                  1583   
 ----------------------- ------- 

0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions