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-1230605: Easy logging garbage in std out make it unusable #794
What version of NodeJS driver are you using?
1.10.0
What operating system and processor architecture are you using?
macOS, linux
What version of NodeJS are you using?
(node --version and npm --version)
20.11.1
What are the component versions in the environment (npm list)?
what component?
5.Server version:* E.g. 1.90.1
You may get the server version by running a query:
SELECT CURRENT_VERSION();
What did you do?
Every time I start my application I have this output:
(node:46590) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
{"level":"INFO","message":"[9:48:23.841 AM]: Trying to initialize Easy Logging"}
{"level":"INFO","message":"[9:48:23.846 AM]: No client config file found in default directories"}
{"level":"INFO","message":"[9:48:23.846 AM]: Easy Logging is disabled as no config has been found"}
changed the title [-]Easy logging garbage in std out make it unusable [/-][+]SNOW-1230605: Easy logging garbage in std out make it unusable [/+]on Mar 12, 2024
hi, would setting snowflake.configure({ logLevel: "WARN" }); help you perhaps ?
to completely eliminating logs from the driver, you can set it to OFF too.
edit: the new INFO level messages you're seeing are associated with the new Easy Logging feature where we wanted to give some feedback to the users about initialization, etc. If you don't need those messages, perhaps setting th log level a bit lower could help reduce the number of messages, while still keeping those which are more important like warnings, errors, etc.
glad to hear it could help you ! on a separate note we're also working on having the types for the snowflake-sdk as part of the library (#309) so hopefully it'll be easier in the future.
marking this one as closed for now as issue has been resolved, but if you need further help, please do comment and i can reopen
TIL from #886 (comment) that logging EasyLogging messages on INFO level is a request from Snowflake Security team for compliance, and it's not allowed to change it to DEBUG. So it stays on INFO apparently, apologies everyone.
If it's disturbing, please set a higher general loglevel or turn it OFF , see #794 (comment)
FWIW my product supports copying data to and from Oracle, Microsoft, MySQL, Postgres, MariaDB, MongoDB, Yugabyte, Cockroach DB, Amazon AWS S3 BLOB, Microsoft Azure-BLOB, IBM-DB2, Vertica and none of their SDKs dump spurious log messages by default.
Activity
[-]Easy logging garbage in std out make it unusable [/-][+]SNOW-1230605: Easy logging garbage in std out make it unusable [/+]sfc-gh-dszmolka commentedon Mar 12, 2024
hi, would setting
snowflake.configure({ logLevel: "WARN" });help you perhaps ?to completely eliminating logs from the driver, you can set it to
OFFtoo.edit: the new
INFOlevel messages you're seeing are associated with the new Easy Logging feature where we wanted to give some feedback to the users about initialization, etc. If you don't need those messages, perhaps setting th log level a bit lower could help reduce the number of messages, while still keeping those which are more important like warnings, errors, etc.velocityzen commentedon Mar 12, 2024
The "OFF" setting would be very nice, but typescript type don't have that right now. I'll force use "OFF" for now. Thank you!
sfc-gh-dszmolka commentedon Mar 12, 2024
glad to hear it could help you ! on a separate note we're also working on having the types for the snowflake-sdk as part of the library (#309) so hopefully it'll be easier in the future.
marking this one as closed for now as issue has been resolved, but if you need further help, please do comment and i can reopen
doom-weaver commentedon Aug 5, 2024
Its pretty annoying. Could we get that default information about easy logging out of there?
sfc-gh-dszmolka commentedon Aug 12, 2024
thanks folks for all this feedback. will try to address it in #886
sfc-gh-dszmolka commentedon Aug 14, 2024
TIL from #886 (comment) that logging EasyLogging messages on
INFOlevel is a request from Snowflake Security team for compliance, and it's not allowed to change it toDEBUG. So it stays onINFOapparently, apologies everyone.If it's disturbing, please set a higher general loglevel or turn it
OFF, see #794 (comment)markddrake commentedon Oct 7, 2024
OFF fixed it thanks
FWIW my product supports copying data to and from Oracle, Microsoft, MySQL, Postgres, MariaDB, MongoDB, Yugabyte, Cockroach DB, Amazon AWS S3 BLOB, Microsoft Azure-BLOB, IBM-DB2, Vertica and none of their SDKs dump spurious log messages by default.
bcardiff commentedon Dec 10, 2024
I'm facing this issue, but even if I do
I still see one log entry in the stdout.
Is there a way to turn off all the logging? The process I'm working on needs to be in total control of what it is sent to stdout.
sfc-gh-dszmolka commentedon Dec 11, 2024
@bcardiff you're experiencing #957
bcardiff commentedon Dec 11, 2024
Yes! 🎯 Thank you @sfc-gh-dszmolka . The workaround shown there is enough for me.
fix: bump `snowflake-sdk` to `^2.0.3` to fully resolve stdout log noise
fix: suppress Snowflake SDK stdout log noise in TUI (#305)