Logging the datasource for a JPA query call
I have run into a very strange behavior with a spring-boot application. Under certain circumstances, our test build of the application will return results from the production database. The issue is not in the application.properties, otherwise it would ALWAYS return results from production. To track down the cause of this issue, I need to figure out some way to log what datasource the query is executing against.