Skip to content

[logging] Review Logging #3295

Open
Open

Description

@chernser

Description

While some of tests we have found that there are places where debug is not required and causes a lot of logs.

For example

What should be done:

  • review all debug logs
  • remove debug logs on hot path (while data reading, while repeating operations)
  • check debug do not have SQL, credentials, sensitive information, user data, etc.
  • review all other logs in the same way
  • info log should be less frequent and happen only 1 - 2 times. info logs should indicate really valuable information not just "client initialized". No configuration dumps. Only very specific cases (because when client initialized for each request it causes log flood)
  • error for exceptions and really errors
  • trace log should not be used except for a few cases
  • warn is to indicate abnormal state. should not happen on hot path but fine for configuration.
  • document logging with examples how to disable/enable different loggers - so user just copy to application configuration.

Activity

  1. added this to the 0.12.0 milestone on Nov 4, 2026
  2. added theissue type on Nov 4, 2026
  3. added
    client
    jdbc
    on Nov 4, 2026
  4. modified the milestone: 0.12.0 on Nov 10, 2026
  5. self-assigned this
    on Nov 17, 2026
  6. added
    planned_work
    on Nov 18, 2026
  7. added
    api-diagnostics
    and removed on Nov 26, 2026
  8. polyglotAI-bot commented on Nov 27, 2026

    @polyglotAI-bot
    Collaborator

    Recommendation: Keep open — review PR #3300
    #3300 changes only client-v2 and jdbc-v2, and has a merge conflict with main. #3301 adds the docs and goes after #3300. Neither changes the issue's example in clickhouse-data.

    • Category: Other
    • Classification: impact: none · area: API & diagnostics (logging)
    • Status on main: Not applicable — main (8480ca001) still has the debug log of the issue's example, now at line 187.
    • Breaking change: No
    • Duplicates / related: No others

    Analysis: NonBlockingPipedOutputStream.writeBytes writes a debug log in each pass of its write loop (clickhouse-data/src/main/java/com/clickhouse/data/stream/NonBlockingPipedOutputStream.java:187). Only the v1 stack creates this stream (ClickHouseDataStreamFactory.java:194, :230, called from clickhouse-client, clickhouse-http-client, and the v1 driver), so client-v2 and jdbc-v2 do not write this log. The issue also asks for docs: the Logging section of docs/clickhouse-docs/index.mdx shows only the com.clickhouse logger, with no list of the loggers to turn on or off.

    Automated triage by Polyglot AI. A maintainer makes the final decision.

  9. added
    documentation
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api-diagnosticsclientdocumentationenhancementjdbcplanned_work

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions