-
Notifications
You must be signed in to change notification settings - Fork 174
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-142981: Debug logs can't be turned off #220
Comments
bump |
Added to the backlog. |
@snowstakeda this is a real pain for us, could you please bump the priority of this ticket? |
forwarded to dev manager and pm. |
ping @sfc-gh-stakeda, any progress on this one? It's really a pain |
@pr3mar I'm afraid this is the best place to increase the priority higher. I've already forwarded your feedback to the team. We are dealing with issues in the queue. If you need further assistance, please file a support ticket for escalation. Thanks. |
ping @sfc-gh-stakeda anything? |
I unassigned @mknister by mistake, sorry |
Hi @pr3mar , is this still an issue with the latest driver version? |
Hi @sfc-gh-mknister, this is still an issue for us too. We're using slf4j (logback) and I have tried to force |
@sfc-gh-mknister Any progress/update on this? Looks like it is still a problem. |
Hi @pr3mar @bogdanpetrovic0 @jatcwang, Can either one of you share the exact log4j settings you have set? I don't see this issue and we haven't seen anyone else complain about this problem either. Here's an example of what I have in my log4j.properties file:
With those settings, I don't see any logging messages produced by the JDBC driver except for a single log message. The only time I would see the output you're complaining about is if I change log4j.logger.net.snowflake.client to DEBUG. I tested this with version 3.13.12. |
Just following up on this again @jatcwang @pr3mar @bogdanpetrovic0
If you want to turn off logging for all classes under net.snowflake.client (which would include netty) then you can simply use:
Hope this helps. |
hi @sfc-gh-wfateem, this issue is 2 years old, and I can no longer verify the suggested solution. |
Hi @pr3mar, Yeah, sorry about that. This definitely fell off the radar and was only revived by a recent comment by @bogdanpetrovic0. But as they say, "better late than never," right? :) I'm pretty confident the issue here is related to log4j settings and is not a JDBC driver issue. I confirmed that I was able to turn on the shaded netty library's logging and back off. If anyone else has this issue, please refer to my previous comment. I'm going to close this off for now. |
Same issue here. How can I turn off the SFSession: Feb 11, 2025 4:26:52 AM net.snowflake.client.core.SFSession open |
Hi,
I have been trying to bump the version to
3.11.0
+ (up to the latest3.12.1
)and I am getting some strange logs from
net.snowflake.client.jdbc.internal.io.netty.*
:I am using my own
log4j.properties
file and I can successfully control the output of all other dependencies, apart fromnet.snowflake.client.jdbc.internal.io.netty.*
. There is something on the output just at the program initialization, and nothing afterwards.I am using
scala
, with the following logger dependency:I tried all possible combinations to disable the log level or increase the threshold, including the official documentation but with no luck whatsoever.
The text was updated successfully, but these errors were encountered: