certificates
certificates copied to clipboard
All logs are currently sent to stderr
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.
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.
@maraino is this something that will be addressed by switching to the new logger backend that we've been discussing?
@dopey yes, this will be fixed once we switch to https://github.com/smallstep/logging
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?
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.