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

repeat log in JdbcBackend.scala #2003

Closed
wtog opened this issue Mar 22, 2019 · 2 comments
Closed

repeat log in JdbcBackend.scala #2003

wtog opened this issue Mar 22, 2019 · 2 comments

Comments

@wtog
Copy link

wtog commented Mar 22, 2019

DESCRIPTION:

these codes logged twice, JdbcBackend.logStatement("Preparing statement", sql) should be deleted?

  • JdbcBackend.logStatement("Preparing statement", sql)
  • loggingPreparedStatement(decorateStatement(resultSetHoldability.withDefault(defaultHoldability)

image

@hvesalai hvesalai added this to the Future feature release milestone Apr 25, 2019
@hvesalai
Copy link
Member

A tested PR is welcome to fix the issue.

@wtog
Copy link
Author

wtog commented Apr 30, 2019

repeat log is my mistake in my config in log4j2.xml
the config below, will not log repatedly due to additivity="false"

<Root level="INFO" additivity="false">
        <appender-ref ref="STDOUT"/>
</Root>
<Logger name="slick.jdbc.JdbcBackend.statement" level="debug" additivity="false">
        <appender-ref ref="STDOUT"/>
</Logger>

@wtog wtog closed this as completed Apr 30, 2019
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