Files
oak-gpui/crates
Max Brunsfeld 97159bd88d Associate logs from log_err with the calling crate (#13617)
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
2024-06-27 17:03:47 -07:00
..
2024-05-29 18:06:45 -07:00
2024-06-23 07:39:01 -04:00
2024-05-29 18:06:45 -07:00
2024-04-30 23:31:59 -06:00
2024-06-12 23:22:52 +03:00
2024-06-12 23:22:52 +03:00
2024-06-18 12:16:54 -07:00
2024-03-11 10:45:57 +01:00
2024-03-26 16:10:09 -07:00
2024-06-18 12:16:54 -07:00
2024-06-26 14:32:16 -06:00
2024-06-25 15:12:45 +02:00
2024-05-23 15:50:59 +02:00
2024-06-21 16:32:32 -07:00
2024-06-21 16:32:32 -07:00
2024-06-21 16:32:32 -07:00
2024-06-18 12:16:54 -07:00
2024-04-15 14:21:52 +02:00
2024-06-27 19:14:13 -04:00
2024-06-24 22:16:49 -06:00