Skip to content

Conversation

Sanne
Copy link
Member

@Sanne Sanne commented Oct 28, 2019

Fixes #4808

@Sanne Sanne added area/persistence OBSOLETE, DO NOT USE area/user-experience Will make us lose users labels Oct 28, 2019

@Override
public void onInfo(String message) {
log.infov("{0}: {1}", datasourceName, message);
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member Author

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.

@Sanne
Copy link
Member Author

Sanne commented Oct 28, 2019

@gsmet updated, as discussed in chat.

@gsmet gsmet merged commit 1a3637b into quarkusio:master Oct 28, 2019
@gsmet
Copy link
Member

gsmet commented Oct 28, 2019

Merged, thanks!

@gsmet gsmet added this to the 0.27.0 milestone Oct 28, 2019
@Sanne Sanne deleted the AgroalMessages branch October 29, 2019 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/persistence OBSOLETE, DO NOT USE area/user-experience Will make us lose users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agroal to not log warnings for default configuration

2 participants