Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Remove SqlLoggerListener as it is a utility class and shouldn't be part of the extension #68

Open
apatrida opened this issue May 15, 2022 · 1 comment

Comments

@apatrida
Copy link

The SqlLoggerListener is a utility class that shouldn't be part of the public extension.

@Perdjesk
Copy link

Side effect of this class and its usage during configuration of jooq renders the activation of jooq query log cumbersome and unexpected.

quarkus.log.category."org.jooq".level=DEBUG
quarkus.log.category."io.quarkiverse.jooq.sql".min-level=TRACE
quarkus.log.category."io.quarkiverse.jooq.sql".level=TRACE

settings.setExecuteLogging(SqlLoggerListener.sqlLog.isTraceEnabled()); // LoggerListener

Moreover it then triggers duplicated lines in log

2023-10-31 14:52:15,333 DEBUG [org.joo.too.LoggerListener] (main) Executing query          : select "actor"."first_name", "actor"."last_name", ...
2023-10-31 14:52:15,337 DEBUG [org.joo.too.LoggerListener] (main) -> with bind values      : select "actor"."first_name", "actor"."last_name", ...
2023-10-31 14:52:15,338 DEBUG [io.qua.joo.sql.SqlLoggerListener] (main) <<SQL>>                  : select "actor"."first_name", "actor"."last_name" ...

https://www.jooq.org/doc/latest/manual/sql-execution/logging/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants