[ ] I am adding a new automated test(s) to verify correctness of my new code
[ ] I am adding new logging messages
[ ] I am adding a new telemetry message
[ ] I am modifying authorization mechanisms
[ ] I am adding new credentials
[ ] I am modifying OCSP code
[ ] I am adding a new dependency
Please describe how your code solves the related issue.
Default behaviour for OCSP is Fail-Open when we cannot do a proper OCSP check; the driver continues to connect to Snowflake while logging a message which is intended to be warning (since the connection still happens). The verbiage of the warning text is clearly reflecting the intention of it being warning - however, we log this warning line at ERROR loglevel instead of WARNING, which apparently causes unnecessary log cluttering in certain scenarios.
This small PR aims to change the loglevel for the OCSP Fail-Open message to match the actual verbiage and severity of the event: WARNING
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Relevant to https://github.com/snowflakedb/snowflake-connector-python/issues/2044
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Default behaviour for OCSP is Fail-Open when we cannot do a proper OCSP check; the driver continues to connect to Snowflake while logging a message which is intended to be warning (since the connection still happens). The verbiage of the warning text is clearly reflecting the intention of it being warning - however, we log this warning line at
ERROR
loglevel instead ofWARNING
, which apparently causes unnecessary log cluttering in certain scenarios. This small PR aims to change the loglevel for the OCSP Fail-Open message to match the actual verbiage and severity of the event:WARNING
(Optional) PR for stored-proc connector: