From 5445693e51393f7977ef5ae669d321864abce977 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Wed, 15 Jul 2026 14:48:38 -0700 Subject: [PATCH] fix(FN-8009): quiet embedded backend TUI logs Suppress routine embedded-backend resolution messages while retaining redacted external-backend diagnostics. --- packages/core/src/postgres/connection.ts | 8 ++++++-- packages/core/src/postgres/startup-factory.ts | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/core/src/postgres/connection.ts b/packages/core/src/postgres/connection.ts index c3126e5608..cfb4420f64 100644 --- a/packages/core/src/postgres/connection.ts +++ b/packages/core/src/postgres/connection.ts @@ -162,8 +162,12 @@ export async function createConnectionSetFromUrl( const idleTimeout = options.idleTimeoutSeconds ?? DEFAULT_IDLE_TIMEOUT_SECONDS; const onWarning = options.onWarning ?? ((msg: string) => log.warn(msg)); - // Log the resolved backend (password redacted). - log.log(describeBackendForLog(backend)); + // FNXC:PostgresTuiLogging 2026-07-15-14:52: Embedded PostgreSQL is the + // default zero-config backend, so its already-resolved connection details + // are routine startup noise in the TUI. Keep external target diagnostics. + if (backend.mode === "external") { + log.log(describeBackendForLog(backend)); + } // Emit pooler warning if applicable (VAL-CONN-008). const warning = poolerWarning(backend); diff --git a/packages/core/src/postgres/startup-factory.ts b/packages/core/src/postgres/startup-factory.ts index c51b88dd43..544bf140d2 100644 --- a/packages/core/src/postgres/startup-factory.ts +++ b/packages/core/src/postgres/startup-factory.ts @@ -211,7 +211,12 @@ async function bootSchemaBackend( } } - log.log(describeBackendForLog(resolvedBackend)); + // FNXC:PostgresTuiLogging 2026-07-15-14:52: Do not repeat routine embedded + // backend resolution in the TUI; external backend details remain useful + // operator diagnostics and are logged with credentials redacted. + if (resolvedBackend.mode === "external") { + log.log(describeBackendForLog(resolvedBackend)); + } let connections: PostgresConnections | undefined; try { connections = resolvedBackend.mode === "external"