cargo-generate icon indicating copy to clipboard operation
cargo-generate copied to clipboard

Consider using stderr for user facing messages?

Open Madoshakalaka opened this issue 1 year ago • 1 comments

Currently cargo generate uses the log crate and stdout for user facing messages. It seems user facing messages should really go to stderr.

Personally I got pretty confused to see no output when I tried to debug with RUST_LOG=debug cargo-generate generate until I inspected the code and realized how log is being used.

Here are some relevant discussions.

Image Image Image

Madoshakalaka avatar Mar 15 '25 11:03 Madoshakalaka

Despite that being pretty much opinionated, could you be more specific about your confusion and what exactly did not behave correctly with the logs?

sassman avatar Mar 15 '25 14:03 sassman