You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SNOW-1974382: Logger is still making its dirty outputs to stdout #1026
changed the title [-]Logger is still making its dirty outputs to stdout[/-][+]SNOW-1974382: Logger is still making its dirty outputs to stdout[/+]on Mar 10, 2025
import*assnowflakefrom'snowflake-sdk';import'log-timestamp';snowflake.configure({logLevel: "OFF"});constconnection=snowflake.createConnection({account: process.env.SFACCOUNTasstring,username: process.env.SFUSERasstring,password: process.env.SFPASSasstring,application: __filename.slice(__dirname.length+1)});connection.connect((err,conn)=>{if(err){console.error('Unable to connect: '+err.message);return;}conststatement=connection.execute({sqlText: "select current_version();",complete: (err: snowflake.SnowflakeError|undefined,stmt: snowflake.RowStatement,rows: any[]|undefined)=>{if(err){console.error('Failed to execute statement due to the following error: '+err.message);return;}if(rows&&rows.length>0){for(constrowofrows){console.log(row);}}else{console.log('No rows returned.');}}});});
can you please send me a runnable piece of code, which when run on my end, reproduces the issue on v2+ ?
Activity
[-]Logger is still making its dirty outputs to stdout[/-][+]SNOW-1974382: Logger is still making its dirty outputs to stdout[/+]velocityzen commentedon Mar 10, 2025
there is a mistake in your docs as well:

configure function supposed to be called.
sfc-gh-dszmolka commentedon Mar 11, 2025
hi - this was indeed an issue with #957, but it's been fixed with 2.0.0
i did a quick test with nothing else but
snowflake.configure({ logLevel: "OFF" });with v2 nothing is output.
Can you please try, if it works for you too?
The documentation remark is on point though, we need to fix that, i'll work with my Docs team on that.
velocityzen commentedon Mar 11, 2025
I tried with just
snowflake.configure({ logLevel: "OFF" });and it didn't change anything.We use TypeScript maybe it has something do with it?
sfc-gh-dszmolka commentedon Mar 11, 2025
same for me with TypeScript:
my repro:
can you please send me a runnable piece of code, which when run on my end, reproduces the issue on v2+ ?
velocityzen commentedon Mar 11, 2025
let me try to make an example
the difference I noticed is that we use
createPooland notcreateConnectionvelocityzen commentedon Mar 17, 2025
It disappeared after updating to 2.0.3 version
sfc-gh-dszmolka commentedon Mar 17, 2025
Thank you - marking this one as closed for now; but if you require further help please do comment and i can reopen.
fix: bump `snowflake-sdk` to `^2.0.3` to fully resolve stdout log noise
fix: suppress Snowflake SDK stdout log noise in TUI (#305)