-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support enabling tracing #291
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
6601e88
to
4bd31ca
Compare
4bd31ca
to
bad653e
Compare
bad653e
to
009fd01
Compare
.with_default_directive(LevelFilter::TRACE.into()) | ||
.from_env_lossy(), | ||
) | ||
.with(fmt::layer().pretty().without_time()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like both of these functions are basically the same except this line. can they be shared somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. I tried before. It's a little difficult due to generics. Every call of .with
return a new type, I have to use macros to shared the logic. I don't prefer(unless I have to) to write the macros now and it may have better solutions, so I just leave it what it is now :).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah that makes sense. kind of hate the builder pattern sometimes because of this.
009fd01
to
05b89f0
Compare
Description
https://github.com/rolldown-rs/rolldown/blob/6601e8863d8934f18f7b1aa9b44867aba854b6f4/crates/rolldown_tracing/src/lib.rs#L1-L6
Test Plan