vulcan-sql icon indicating copy to clipboard operation
vulcan-sql copied to clipboard

Snowflake driver prints logs with console

Open oscar60310 opened this issue 3 years ago • 0 comments

Environment

  • Version:
    cli version: 0.3.0
    core version: 0.3.0
    build version: 0.3.0
    serve version: 0.3.0
    

What's wrong?

Snowflake driver prints logs with console:

2022-10-28 03:26:55.957  INFO  [CLI] Starting server... 
2022-10-28 03:26:56.166  DEBUG [SERVE] Initializing data source: mock 
2022-10-28 03:26:56.166  DEBUG [SERVE] Data source mock initialized
2022-10-28 03:26:56.167  DEBUG [SERVE] Initializing data source: snowflake
2022-10-28 03:26:56.169  DEBUG [CORE] Initializing profile: snow using snowflake driver
Unable to connect: Incorrect username or password was specified.
Unable to connect: Incorrect username or password was specified.
Unable to connect: Incorrect username or password was specified

What's the correct behavior?

It should print logs through our logger (tslog).

Additional context

Snowflake driver used winston as their logger and not allow us to modify it.

https://github.com/snowflakedb/snowflake-connector-nodejs/blob/master/lib/snowflake.js#L23

oscar60310 avatar Oct 28 '22 03:10 oscar60310