Skip to content

Commit 0dbce3d

Browse files
authored
Merge pull request #16451 from hvitved/treesitter/codeql-verbosity
Tree-sitter: Respect verbosity defined in `CODEQL_VERBOSITY`
2 parents 8ae607c + e4cd9d8 commit 0dbce3d

File tree

13 files changed

+2385
-5017
lines changed

13 files changed

+2385
-5017
lines changed

ql/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ql/extractor/src/extractor.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ pub struct Options {
2020
}
2121

2222
pub fn run(options: Options) -> std::io::Result<()> {
23-
tracing_subscriber::fmt()
24-
.with_target(false)
25-
.without_time()
26-
.with_level(true)
27-
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
28-
.init();
23+
codeql_extractor::extractor::set_tracing_level("ql");
2924

3025
let extractor = simple::Extractor {
3126
prefix: "ql".to_string(),

ql/extractor/src/generator.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ pub struct Options {
1515
}
1616

1717
pub fn run(options: Options) -> std::io::Result<()> {
18-
tracing_subscriber::fmt()
19-
.with_target(false)
20-
.without_time()
21-
.with_level(true)
22-
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
23-
.init();
18+
codeql_extractor::extractor::set_tracing_level("ql");
2419

2520
let languages = vec![
2621
Language {

ql/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# extractor. It is set to the lowest version of Rust we want to support.
33

44
[toolchain]
5-
channel = "1.70"
5+
channel = "1.74"
66
profile = "minimal"
77
components = [ "rustfmt" ]

0 commit comments

Comments
 (0)