Project

General

Profile

Actions

Bug #20473

closed

Error messages are sent to STDOUT

Added by Lukas Zapletal over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Not all, but those using fail_now method:

[root@winter ~]# foreman-installer --scenario foreman --migrations-only >/dev/null
[root@winter ~]# foreman-installer --scenario foreman --migrations-only
ERROR: Selected scenario is DISABLED, can not continue.
       Use --list-scenarios to list available options.
       You can also --enable-scenario SCENARIO to make the selected scenario available.

This is bigger problem than it looks like, because we redirect STDOUT to /dev/null in RPM scriplets!

Actions #1

Updated by Marek Hulán over 6 years ago

I'm afraid at this point we don't know which configuration file to load so we don't know what log file should be used. Martin, pls correct me if I'm wrong. Should we use STDERR in this case?

Actions #2

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lukas Zapletal
  • Pull request https://github.com/theforeman/kafo/pull/217 added
Actions #3

Updated by Lukas Zapletal over 6 years ago

STDERR is without a doubt the place to go.

Actions #4

Updated by Lukas Zapletal over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF