Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

*: disable tracing colorized output if not tty #909

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

zojw
Copy link
Contributor

@zojw zojw commented Jul 25, 2022

Tracing's default output is colorized tokio-rs/tracing#1160, it makes us hard to grep structured log(e.g. fgrep 'group=xx' d1.log get nothing)

It's better to turn it off when we redirect stdout/stderr to file(usually both, RUST_LOG=INFO cargo run start --init --db d1 &> d1.log).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants