Skip to content

Conversation

@swaldman
Copy link
Contributor

@swaldman swaldman commented Mar 1, 2015

play1 simultaneously uses c3p0 as its default Connection pool but sends all c3p0 logging to /dev/null (metaphorically speaking). That renders applications which experience database problems very difficult to debug.

c3p0's logging is unreasonably verbose at DEBUG/FINE/TRACE levels, but is reasonably quiet at INFO and very quiet at WARN or above, unless something really breaks. The library is intended to be logged at INFO. But it does emit an full configuration dump on pool initialization at INFO.

Presumably someone got annoyed by c3p0's logging and (insanely) just swept it away all at once.

This pull request restores c3p0 logging at WARN level. From the perspective of a guy who often gets c3p0 support requests, I'd prefer logging at INFO, so users can view and report their pool configurations. But given the extreme prejudice with which c3p0 logging was eliminated, I figure I should be grateful to even get logging at WARN. (I'd be glad to update this with a commit that logs at INFO instead, if you are amenable!)

@xael-fry
Copy link
Member

xael-fry commented Mar 2, 2015

Could you create an issue in lighthouse?
Thanks

@swaldman
Copy link
Contributor Author

swaldman commented Mar 2, 2015

Sure. Done.

@angryziber
Copy link
Contributor

FYI, we also set c3p0 logging to INFO on production, as some errors are extremely hard to find without it.

@xael-fry xael-fry changed the title Sane c3p0 logging [#1924] Sane c3p0 logging Apr 21, 2015
xael-fry added a commit that referenced this pull request Apr 24, 2015
[#1924] Sane c3p0 logging
@xael-fry xael-fry merged commit b0737ef into playframework:master Apr 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants