Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
aibaars committed Oct 3, 2024
1 parent 58cf24e commit 7d57f06
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions rust/extractor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ argfile = "0.2.1"
codeql-extractor = { path = "../../shared/tree-sitter-extractor" }
rust-extractor-macros = { path = "macros" }
itertools = "0.13.0"
tracing-subscriber = { features=["env-filter"], version="0.3.18" }
16 changes: 12 additions & 4 deletions rust/extractor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,19 @@ fn extract(
Ok(())
}
fn main() -> anyhow::Result<()> {
use tracing_subscriber::{fmt, prelude::*, EnvFilter};
let filter: EnvFilter = "ra_ap_project_model=debug"
.parse()
.expect("filter should parse");
tracing_subscriber::registry()
.with(fmt::layer())
.with(filter)
.init();
let cfg = config::Config::extract().context("failed to load configuration")?;
stderrlog::new()
.module(module_path!())
.verbosity(2 + cfg.verbose as usize)
.init()?;
// stderrlog::new()
// .module(module_path!())
// .verbosity(2 + cfg.verbose as usize)
// .init()?;
log::info!("{cfg:?}");
let rust_analyzer = rust_analyzer::RustAnalyzer::new(&cfg)?;

Expand Down

0 comments on commit 7d57f06

Please sign in to comment.