Snowflake logs apear in the project
I'm running Dataform at version 2.9.0 locally. When I execute the dataform command such as
dataform run, dataform compile or
dataform --version
the following logs appear in the terminal:
{"level":"INFO","message":"[3:35:10.407 PM]: Configuring logger with level: 2, filePath: undefined, additionalLogToConsole: undefined"}
Compiling...
At the same time, a file named snowflake.log is created in the project's root folder, containing these logs.
Each time I execute a command, a new log entry is appended to the file.
In earlier versions of the 2.9.0 package, this issue did not occur. I suspect that a dependency has enabled logging by default and inadvertently pushed it to production.
I found this: https://github.com/snowflakedb/snowflake-connector-nodejs/issues/957 .
When you installed @dataform/[email protected], it comes with [email protected]. (You can check this by npm ls snowflake-sdk --global.)
By installing dataform cli with the lower version of snowflake (i.e. npm install -g [email protected] @dataform/[email protected]), I could solve this issue.
I'm not familiar with npm so I don't know why, but if I run npm install -g [email protected] to dataform cli installed environment, it didn't override the existing library, so I recommend checking the snowflake version with the command above.
Indeed Snowflake is incluede the @dataform/[email protected] and @dataform/[email protected] version.
But why ? Why We have snowflake in dataform ? @dataform-team
Dataform supported Snowflake before being acquired by Google. You can upgrade to the latest 3.x versions of Dataform where this support has been removed.