fix(FN-8009): quiet embedded backend TUI logs
Suppress routine embedded-backend resolution messages while retaining redacted external-backend diagnostics.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user