Skip to content

SNOW-1896089: [Logs] - Downgrade log level from info to debug #2148

@afranzi

Description

@afranzi

What is the current behavior?

Noisy Info logs

[INFO 2025-01-24 12:06:22,169 connection.py:803] closed
[INFO 2025-01-24 12:06:22,186 connection.py:809] No async queries seem to be running, deleting session
[INFO 2025-01-24 12:06:22,260 connection.py:803] closed
[INFO 2025-01-24 12:06:22,278 connection.py:809] No async queries seem to be running, deleting session
[INFO 2025-01-24 12:06:22,308 connection.py:803] closed
[INFO 2025-01-24 12:06:22,326 connection.py:809] No async queries seem to be running, deleting session
[INFO 2025-01-24 12:06:22,351 connection.py:803] closed
[INFO 2025-01-24 12:06:22,363 connection.py:809] No async queries seem to be running, deleting session
[INFO 2025-01-24 12:06:22,385 connection.py:803] closed

What is the desired behavior?

It would be great if we could change these logs from info level to debug level to reduce noisy logs since the information currently displayed would be more debug oriented.

We could also downgrade the starting connection logs to:

[INFO 2025-01-24 12:05:16,069 connection.py:424] Snowflake Connector for Python Version: 3.13.0, Python Version: 3.10.12, Platform: Linux-6.1.94-99.176.amzn2023.x86_64-x86_64-with-glibc2.28
[INFO 2025-01-24 12:05:16,069 connection.py:1213] Connecting to GLOBAL Snowflake domain
[INFO 2025-01-24 12:05:16,069 connection.py:1295] This connection is in OCSP Fail Open Mode. TLS Certificates would be checked for validity and revocation status. Any other Certificate Revocation related exceptions or OCSP Responder failures would be disregarded in favor of connectivity.

Thank you!

How would this improve snowflake-connector-python?

It will make the library more clean.

References and other background

No response

Metadata

Metadata

Labels

featurestatus-fixed_awaiting_releaseThe issue has been fixed, its PR merged, and now awaiting the next release cycle of the connector.triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions