Skip to content

Commit

Permalink
improve log filters
Browse files Browse the repository at this point in the history
  • Loading branch information
oppiliappan committed Aug 2, 2023
1 parent 85c24be commit dbb4d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions server/bleep/src/indexes/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,7 @@ impl RepoFile {
// we have a graph, use that
Ok(graph) => SymbolLocations::TreeSitter(graph),
// no graph, it's empty
Err(err) => {
warn!(?err, %lang_str, "failed to build scope graph");
SymbolLocations::Empty
}
Err(_) => SymbolLocations::Empty,
}
};

Expand Down
1 change: 1 addition & 0 deletions server/bleep/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ fn tracing_subscribe(config: &Configuration) -> bool {
.with_writer(non_blocking)
.with_ansi(false)
.with_filter(Targets::new().with_target("bleep", LevelFilter::DEBUG))
.with_filter(Targets::new().with_target("bleep::indexes::file", LevelFilter::WARN))
});

#[cfg(all(tokio_unstable, feature = "debug"))]
Expand Down

0 comments on commit dbb4d69

Please sign in to comment.