Always log path of H2 console, then log details for each data source that offers a connection, in order, primary first.
Resolves #27881
Comment From: pivotal-cla
@StitzL Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-cla
@StitzL Thank you for signing the Contributor License Agreement!
Comment From: StitzL
We already have a test for the single datasource use case (see
dataSourceUrlIsLoggedWhenAvailable
). We'd need an additional test for the code that you've changed. Can you please look at that?
Sure, I just have to figure out how to create a second datasource in that test scenario.
Comment From: snicoll
Sure, I just have to figure out how to create a second datasource in that test scenario.
Check MultiDataSourceUsingPrimaryConfiguration
for example.
Comment From: StitzL
Condensed the log to a single entry with 4b0edea, which complicated the code.
Added tests for boundary conditions with 8f78983.
Comment From: snicoll
@StitzL thank you for making your first contribution to Spring Boot.
Comment From: StitzL
My pleasure! Thanks for the feedback and your work on this as well.