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:
Ben Kunkle 2025-05-26 10:48:50 -05:00 committed by GitHub
parent 0c27aaecb3
commit c0aa8f63fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
66 changed files with 123 additions and 167 deletions

View file

@ -54,7 +54,6 @@ workspace-hack.workspace = true
[dev-dependencies]
client = { workspace = true, features = ["test-support"] }
env_logger.workspace = true
fs = { workspace = true, features = ["test-support"] }
futures.workspace = true
gpui = { workspace = true, features = ["test-support"] }
@ -67,3 +66,4 @@ reqwest_client.workspace = true
util = { workspace = true, features = ["test-support"] }
workspace = { workspace = true, features = ["test-support"] }
worktree = { workspace = true, features = ["test-support"] }
zlog.workspace = true

View file

@ -12,7 +12,7 @@ use std::{
};
fn main() {
env_logger::init();
zlog::init();
use clock::FakeSystemClock;

View file

@ -280,7 +280,7 @@ mod tests {
use util::separator;
fn init_test(cx: &mut TestAppContext) {
env_logger::try_init().ok();
zlog::init_test();
cx.update(|cx| {
let store = SettingsStore::test(cx);