Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

JDBC driver prints stack trace to stdout #1827

Open
jjtt opened this issue Sep 19, 2024 · 0 comments
Open

JDBC driver prints stack trace to stdout #1827

jjtt opened this issue Sep 19, 2024 · 0 comments
Labels

Comments

@jjtt
Copy link

jjtt commented Sep 19, 2024

Describe the bug

On some exceptions the JDBC driver prints a whole stack trace to stdout here: https://github.com/ClickHouse/clickhouse-java/blob/main/clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseClient.java#L963

This can mess up structured logging output for an application that uses the ClickHouse JDBC driver.

Steps to reproduce

  1. Connect to a db from an application
  2. Revoke the db credentials
  3. See stack trace in application stdout

Expected behaviour

Should use some common logging framework where the application can control logging from libraries. For example: SLF4J or logback.

Or throw an exception and let the application worry about it.

@jjtt jjtt added the bug label Sep 19, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant