Skip to content

All logs are currently sent to stderr #153

Open

Description

@gareththered

Running the following:

step-ca --password-file ./secrets/password  ./config/ca.json >output.txt 2>error.txt

results in:

-rw-r-----    1 step     step          6640 Jan 10 08:15 error.log
-rw-r-----    1 step     step             0 Jan 10 07:59 output.log

Notice that all logging information, including successful issuance are logged to stderr, not stdout. Success should be logged to stdout.

Activity

  1. dopey commented on Jan 11, 2020

    @dopey
    Contributor

    Hey @gareththered, thanks for pointing this out! I "think" we did this on purpose, but it may have been for an old/antiquated reason at this point. Gonna take a look first thing next week and get back to you.

  2. added this to the Short Term Backlog milestone on Apr 15, 2020
  3. added
    needs triage
    on Apr 16, 2020
  4. removed
    needs triage
    on Jun 10, 2020
  5. self-assigned this
    on Sep 23, 2020
  6. dopey commented on Nov 18, 2020

    @dopey
    Contributor

    @maraino is this something that will be addressed by switching to the new logger backend that we've been discussing?

  7. maraino commented on Nov 18, 2020

    @maraino
    Contributor

    @dopey yes, this will be fixed once we switch to https://github.com/smallstep/logging

  8. Slamdunk commented on Aug 10, 2022

    @Slamdunk
    Contributor

    Hi, many automation tools require stderr to be empty in order to consider the command execution successful.

    May I ask you if there's any news on this?

  9. maraino commented on Aug 10, 2022

    @maraino
    Contributor

    As I said before this will be addressed by replacing the logger with https://github.com/smallstep/logging, but we haven't prioritized this, I will tag this issue so it appears in our next triage.

  10. added
    needs triage
    on Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugneeds triagetech-debt

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions