Skip to content

fix(core): allow overriding daemon logging settings#34324

Merged
AgentEnder merged 1 commit intomasterfrom
fix/allow-overriding-daemon-log-settings
Feb 5, 2026
Merged

fix(core): allow overriding daemon logging settings#34324
AgentEnder merged 1 commit intomasterfrom
fix/allow-overriding-daemon-log-settings

Conversation

@AgentEnder
Copy link
Copy Markdown
Member

Current Behavior

NX_NATIVE_LOGGING is hardcoded and can't be customized on the daemon server

Expected Behavior

Log settings can be customized by changing them in the env of the first command to spawn the daemon

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested a review from a team as a code owner February 4, 2026 17:07
@AgentEnder AgentEnder requested a review from MaxKless February 4, 2026 17:07
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nx-dev Error Error Feb 4, 2026 5:07pm

Request Review

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 4, 2026

Deploy Preview for nx-dev failed. Why did it fail? →

Name Link
🔨 Latest commit d3df235
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6983be7db630c40008291d8d

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Feb 4, 2026

View your CI Pipeline Execution ↗ for commit d3df235

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 1h 3m 52s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 3s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 12s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-04 22:57:07 UTC

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 4, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit d3df235
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6983be7d9881b20008f8877c
😎 Deploy Preview https://deploy-preview-34324--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.

Nx Cloud is proposing a fix for your failed CI:

These changes fix the failing e2e-gradle test by removing NX_NATIVE_LOGGING from the allowed environment variables in e2e tests. The PR's changes to make daemon logging overridable were causing Gradle plugin warnings to appear in test output when NX_NATIVE_LOGGING was passed through from the test environment, failing the test assertion.

Tip

We verified this fix by re-running e2e-gradle:e2e-ci--src/gradle.test.ts.

diff --git a/e2e/utils/get-env-info.ts b/e2e/utils/get-env-info.ts
index 27b0367187..73eb46b785 100644
--- a/e2e/utils/get-env-info.ts
+++ b/e2e/utils/get-env-info.ts
@@ -151,7 +151,9 @@ export function getStrippedEnvironmentVariables() {
         'NX_ADD_PLUGINS',
         'NX_ISOLATE_PLUGINS',
         'NX_VERBOSE_LOGGING',
-        'NX_NATIVE_LOGGING',
+        // NX_NATIVE_LOGGING is intentionally excluded to prevent e2e tests from
+        // overriding daemon logging settings, which can cause test failures when
+        // warnings/debug output appears in command results
       ];
 
       if (key.startsWith('NX_') && !allowedKeys.includes(key)) {

Apply fix via Nx Cloud  Reject fix via Nx Cloud


Or Apply changes locally with:

npx nx-cloud apply-locally EQKR-BCqJ

Apply fix locally with your editor ↗   View interactive diff ↗


🎓 Learn more about Self-Healing CI on nx.dev

@AgentEnder AgentEnder force-pushed the fix/allow-overriding-daemon-log-settings branch from 1b3309d to d3df235 Compare February 4, 2026 21:47
@AgentEnder AgentEnder merged commit 82265ff into master Feb 5, 2026
20 of 24 checks passed
@AgentEnder AgentEnder deleted the fix/allow-overriding-daemon-log-settings branch February 5, 2026 02:12
jaysoo pushed a commit that referenced this pull request Feb 5, 2026
## Current Behavior
NX_NATIVE_LOGGING is hardcoded and can't be customized on the daemon
server

## Expected Behavior
Log settings can be customized by changing them in the env of the first
command to spawn the daemon

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
FrozenPandaz pushed a commit that referenced this pull request Feb 6, 2026
## Current Behavior
NX_NATIVE_LOGGING is hardcoded and can't be customized on the daemon
server

## Expected Behavior
Log settings can be customized by changing them in the env of the first
command to spawn the daemon

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit 82265ff)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants