Skip to content

CLI: some warnings are sent to standard output #8912

@emmanuel-benoit

Description

@emmanuel-benoit

Describe the bug

The rabbitmqctl tool that comes with RabbitMQ 3.11.20 sends its warnings to the standard output stream instead of the standard error stream. This causes problems with scripts that use it with e.g. --formatter json

Reproduction steps

  1. Have some settings that cause a warning to be issued when using rabbitmqctl (e.g. disable TLS server authenticity checks).
  2. Run e.g. rabbitmqctl cluster_status --formatter json 2>/dev/null

Expected behavior

The command above should only display the JSON-formatted data. Instead, the output starts with warnings and then contains the JSON data.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions