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

@@ -25,15 +25,7 @@ pub struct Options {
}
pub fn run(options: Options) -> std::io::Result<()> {
tracing_subscriber::fmt()
.with_target(false)
.without_time()
.with_level(true)
.with_env_filter(
tracing_subscriber::EnvFilter::try_from_default_env()
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("ruby_extractor=warn")),
)
.init();
extractor::set_tracing_level("ruby");
let diagnostics = diagnostics::DiagnosticLoggers::new("ruby");
let mut main_thread_logger = diagnostics.logger();
let num_threads = match codeql_extractor::options::num_threads() {