-
Notifications
You must be signed in to change notification settings - Fork 3k
Improves Agroal messages #4923
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
Improves Agroal messages #4923
Conversation
|
||
@Override | ||
public void onInfo(String message) { | ||
log.infov("{0}: {1}", datasourceName, message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question that might be stupid: so now, we will log the message about the initial size at info level? Does it really solve the problem? I mean most users will run their application with the default log level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question that might be stupid: so now, we will log the message about the initial size at info level?
Yes.
Does it really solve the problem?
What problem exactly? See also discussion on #4808
It will read like this now, wording suggested by Loic; too late to change the wording as that requires an Agroal release.
INFO [io.agr.pool] (main) Datasource '<default>': Initial size smaller than min. Connections will be created when necessary
We could make it entirely silent by setting the default min-size to zero: it's 5 now and I'm not entirely sure why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah that's actually not the wording Loic suggested. Looks like it was too late for the Agroal train.
@gsmet updated, as discussed in chat. |
Merged, thanks! |
Fixes #4808