Tree-sitter: Respect verbosity defined in CODEQL_VERBOSITY

This commit is contained in:
Tom Hvitved
2024-05-08 15:38:44 +02:00
parent a523be4d0a
commit e4cd9d86f6
12 changed files with 706 additions and 3076 deletions

View File

@@ -14,7 +14,7 @@ pub mod simple;
/// Sets the tracing level based on the environment variables
/// `RUST_LOG` and `CODEQL_VERBOSITY` (prioritized in that order),
/// falling back to `warn` if neither is set.
pub fn set_tracing_level(language: &str) -> () {
pub fn set_tracing_level(language: &str) {
tracing_subscriber::fmt()
.with_target(false)
.without_time()