Skip to content

Commit df4f136

Browse files
authored
fix(core): scope native logging to nx module by default (#31530)
## Current Behavior The native logging is currently set to a global 'info' level, which can produce verbose output that may not be relevant to users. ## Expected Behavior Native logging should be scoped to the 'nx::native' module by default with 'info' level, reducing noise while still allowing users to control logging verbosity through the `NX_NATIVE_LOGGING` environment variable. ## Related Issue(s) This improves the developer experience by providing more focused logging output and reduces unnecessary verbosity in the console. Fixes #31518
1 parent 7a53477 commit df4f136

File tree

1 file changed

+2
-1
lines changed
  • packages/nx/src/native/logger

1 file changed

+2
-1
lines changed

packages/nx/src/native/logger/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ pub(crate) fn enable_logger() {
108108
.with_writer(std::io::stdout)
109109
.event_format(NxLogFormatter)
110110
.with_filter(
111-
EnvFilter::try_from_env("NX_NATIVE_LOGGING").unwrap_or_else(|_| EnvFilter::new("info")),
111+
EnvFilter::try_from_env("NX_NATIVE_LOGGING")
112+
.unwrap_or_else(|_| EnvFilter::new("nx::native=info")),
112113
);
113114

114115
let registry = tracing_subscriber::registry()

0 commit comments

Comments
 (0)