Skip to content

Commit

Permalink
fix: ensured spans don't get filtered out by the logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoverson committed Aug 9, 2023
1 parent daccbc3 commit 8dfcc3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion crates/wick/wick-logger/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ where
return false;
}
if silly_modules(module) {
matches!(*metadata.level(), tracing::Level::ERROR | tracing::Level::WARN)
if metadata.is_span() {
true
} else {
matches!(*metadata.level(), tracing::Level::ERROR | tracing::Level::WARN)
}
} else {
true
}
Expand Down

0 comments on commit 8dfcc3d

Please # to comment.