zlog: Replace usages of env_logger
in tests with zlog
(#31436)
Also fixes: https://github.com/zed-industries/zed/pull/31400#issuecomment-2908165249 Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
parent
0c27aaecb3
commit
c0aa8f63fd
66 changed files with 123 additions and 167 deletions
|
@ -93,7 +93,6 @@ workspace-hack.workspace = true
|
|||
|
||||
[dev-dependencies]
|
||||
ctor.workspace = true
|
||||
env_logger.workspace = true
|
||||
gpui = { workspace = true, features = ["test-support"] }
|
||||
language = { workspace = true, features = ["test-support"] }
|
||||
languages = {workspace = true, features = ["test-support"] }
|
||||
|
@ -113,3 +112,4 @@ unindent.workspace = true
|
|||
util = { workspace = true, features = ["test-support"] }
|
||||
workspace = { workspace = true, features = ["test-support"] }
|
||||
http_client = { workspace = true, features = ["test-support"] }
|
||||
zlog.workspace = true
|
||||
|
|
|
@ -25,9 +25,7 @@ use util::test::{marked_text_offsets, marked_text_ranges};
|
|||
#[cfg(test)]
|
||||
#[ctor::ctor]
|
||||
fn init_logger() {
|
||||
if std::env::var("RUST_LOG").is_ok() {
|
||||
env_logger::init();
|
||||
}
|
||||
zlog::init_test();
|
||||
}
|
||||
|
||||
pub fn test_font() -> Font {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue