mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:26 +00:00
[ty] Log target names at trace level (#19084)
Follow-up to https://github.com/astral-sh/ruff/pull/19083, also log the target names like `ty_python_semantic::module_resolver::resolver` in `2025-07-02 10:12:20.188697000 DEBUG ty_python_semantic::module_resolver::resolver: Adding first-party search path '/Users/dhruv/playground/ty_server'` at trace level.
This commit is contained in:
parent
c3d9b21db5
commit
d1e705738e
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ pub(crate) fn init_logging(log_level: LogLevel, log_file: Option<&Path>) {
|
|||
tracing_subscriber::fmt::layer()
|
||||
.with_timer(ChronoLocal::new("%Y-%m-%d %H:%M:%S.%f".to_string()))
|
||||
.with_thread_names(is_trace_level)
|
||||
.with_target(is_trace_level)
|
||||
.with_ansi(false)
|
||||
.with_writer(logger)
|
||||
.with_filter(LogLevelFilter { filter: log_level }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue