mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-09 02:44:49 +00:00
97159bd88d
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Now, when you selectively enable logs from particular crates with `RUST_LOG=call,worktree`, logs created via `log_err` calls in those crates get correctly enabled. Previously, they were all attributed to the `util` crate, because they used the normal logging macros, which implicitly insert the current crate name. This relies on the regularity of our directory naming. Rust's `track_caller` feature allows you to obtain the file system path of the caller, but not its rust module path, so I'm inferring the crate name from the file system path (which I believe is always valid, in our codebase). Release Notes: - N/A |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE |