From ce1d6b2e6ee3e3acba52acc11c034de6eb1fcac1 Mon Sep 17 00:00:00 2001 From: Jonathan Cammisuli <4332460+Cammisuli@users.noreply.github.com> Date: Fri, 9 May 2025 19:59:10 -0400 Subject: [PATCH] fix(core): change default native logging to "OFF" (#31161) ## Current Behavior "ERROR" is set as the default logging level when using native logging. This causes issues with the new function of calling the native logger from the JS side. ## Expected Behavior "OFF" is set as the default so that no logs appear on stdout if there was no explicit opt-in. ## Related Issue(s) Fixes # --- packages/nx/src/native/logger/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nx/src/native/logger/mod.rs b/packages/nx/src/native/logger/mod.rs index 0a7c1f790e..0fc89433bd 100644 --- a/packages/nx/src/native/logger/mod.rs +++ b/packages/nx/src/native/logger/mod.rs @@ -102,8 +102,7 @@ pub(crate) fn enable_logger() { .with_writer(std::io::stdout) .event_format(NxLogFormatter) .with_filter( - EnvFilter::try_from_env("NX_NATIVE_LOGGING") - .unwrap_or_else(|_| EnvFilter::new("ERROR")), + EnvFilter::try_from_env("NX_NATIVE_LOGGING").unwrap_or_else(|_| EnvFilter::new("OFF")), ); let registry = tracing_subscriber::registry()