Skip to content
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

Add an optional logger param #664

Merged
merged 12 commits into from
Mar 23, 2025
Prev Previous commit
Next Next commit
Merge branch 'master' into logger-field
  • Loading branch information
tisonkun authored Feb 25, 2025
commit c300df094569e768c2499879ab6873ab8cf6d15c
2 changes: 1 addition & 1 deletion tests/integration.rs
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a good target to test our new logger param.

Previously, the global logger state is shared with all the macros tests and causes the result unstable.

Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ fn test_line_numbers(logger: &dyn Log, state: &State) {
log::set_max_level(LevelFilter::Trace);

info!(logger: logger, ""); // ensure check_line function follows log macro
check_log_location(&state);
check_log_location(state);

#[track_caller]
fn check_log_location(state: &State) {
You are viewing a condensed version of this merge commit. You can view the full changes here.