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

Document how to log @Sql scripts and statements #31589

Closed
sbrannen opened this issue Nov 10, 2023 · 0 comments
Closed

Document how to log @Sql scripts and statements #31589

sbrannen opened this issue Nov 10, 2023 · 0 comments
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) in: test Issues in the test module type: documentation A documentation task
Milestone

Comments

@sbrannen
Copy link
Member

This came up on Stack Overflow, and I realized we should actually document this for users.

If you want to see which @Sql scripts are being executed, set the org.springframework.test.context.jdbc logging category to DEBUG.

If you want to see which SQL statements are being executed, set the org.springframework.jdbc.datasource.init logging category to DEBUG.

@sbrannen sbrannen added in: data Issues in data modules (jdbc, orm, oxm, tx) in: test Issues in the test module type: documentation A documentation task labels Nov 10, 2023
@sbrannen sbrannen added this to the 6.1.0 milestone Nov 10, 2023
@sbrannen sbrannen self-assigned this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) in: test Issues in the test module type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

1 participant