mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Use RA_LOG in tests
This commit is contained in:
parent
7e4cd6b4e4
commit
a44f6c18fb
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ impl<'a> Project<'a> {
|
||||||
let tmp_dir = self.tmp_dir.unwrap_or_else(|| TestDir::new());
|
let tmp_dir = self.tmp_dir.unwrap_or_else(|| TestDir::new());
|
||||||
static INIT: Once = Once::new();
|
static INIT: Once = Once::new();
|
||||||
INIT.call_once(|| {
|
INIT.call_once(|| {
|
||||||
env_logger::builder().is_test(true).try_init().unwrap();
|
env_logger::builder().is_test(true).parse_env("RA_LOG").try_init().unwrap();
|
||||||
profile::init_from(crate::PROFILE);
|
profile::init_from(crate::PROFILE);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue