-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1800528: Disabling logging without anything being logged to stdout is difficult #957
Comments
hi - you're right, that's not how |
PR #958 edit: merged, will be part of the next upcoming release cycle |
When is this going to be released? This is critical bug as it makes the whole STDOUT unusable. |
thank you for bearing with us while this is getting released! Currently, since we also need to consider other things which will be included in the release, there's unfortunately no more precise estimation for the release date than we hoping to be able to do it this week. Until the release is actually out, if this is a critical issue for you, as a mitigation you can try:
|
@velocityzen I also included a workaround above which is non-obvious but works for me for now. |
released with Snowflake Node.js driver v2.0.0 |
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of NodeJS driver are you using?
1.15.0
What operating system and processor architecture are you using?
darwin arm64
What version of NodeJS are you using?
v20.18.0
What are the component versions in the environment (
npm list
)?N/A
What did you do?
No logging to stdout anywhere. Instead, I see the message
logged to console/stdout before it finally turns off. This seems to defeat the purpose of silencing logging to stdout. This is important to me because the output to my program (querying Snowflake) is used as input to another process, and the downstream process is confused by seeing Snowflake logging output.
As a workaround, I've instead done
but this isn't documented anywhere. Other workarounds like setting
additionalLogToConsole
to false doesn't work because a log file isn't set, and settinglogFilePath
also triggers that initial, unwanted message:snowflake-connector-nodejs/lib/core.js
Lines 189 to 190 in d50e1ce
The text was updated successfully, but these errors were encountered: