Skip to content

Commit 640aa6e

Browse files
committed
fix: disable snowflake sdk console logs in TUI (fixes #300)
1 parent b25f49e commit 640aa6e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

packages/drivers/src/snowflake.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ export async function connect(config: ConnectionConfig): Promise<Connector> {
1717
}
1818

1919
// Suppress snowflake-sdk's Winston console logging — it writes JSON log
20-
// lines to stdout which corrupt the TUI display (see #249).
20+
// lines into the interactive TUI output and corrupts the display.
2121
if (typeof snowflake.configure === "function") {
2222
try {
23-
snowflake.configure({ logLevel: "OFF" })
23+
snowflake.configure({
24+
logLevel: "OFF",
25+
additionalLogToConsole: false,
26+
})
2427
} catch {
25-
// Older SDK versions may not support this option; ignore.
28+
// Older SDK versions may not support these options; ignore.
2629
}
2730
}
2831

0 commit comments

Comments
 (0)