Skip to content

NO-SNOW: Change initialization logs level to DEBUG#2504

Merged
sfc-gh-dheyman merged 2 commits intomasterfrom
driver-init-logging
Feb 17, 2026
Merged

NO-SNOW: Change initialization logs level to DEBUG#2504
sfc-gh-dheyman merged 2 commits intomasterfrom
driver-init-logging

Conversation

@sfc-gh-dheyman
Copy link
Collaborator

Overview

The DriverInitializer and SnowflakeDriver static block log several INFO-level messages during class loading, before connection parameters like tracing=WARNING have a chance to take effect. Since java.util.logging's default ConsoleHandler threshold is INFO, these messages leak to stderr and cannot be suppressed by the user.

Pre-review self checklist

  • PR branch is updated with all the changes from master branch
  • The code is correctly formatted (run mvn -P check-style validate)
  • New public API is not unnecessary exposed (run mvn verify and inspect target/japicmp/japicmp.html)
  • The pull request name is prefixed with SNOW-XXXX:
  • Code is in compliance with internal logging requirements

External contributors - please answer these questions before submitting a pull request. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Issue: #NNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency or upgrading an existing one
    • I am adding new public/protected component not marked with @SnowflakeJdbcInternalApi (note that public/protected methods/fields in classes marked with this annotation are already internal)
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

@sfc-gh-dheyman sfc-gh-dheyman merged commit 8901889 into master Feb 17, 2026
157 of 163 checks passed
@sfc-gh-dheyman sfc-gh-dheyman deleted the driver-init-logging branch February 17, 2026 10:58
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments