-
Notifications
You must be signed in to change notification settings - Fork 338
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
Logging/config recomendation #44
Comments
Hi, These stack traces are, alas, advertent. c3p0 (many com.mchange.*) libraries' logging style is to log a lot, to err on the side of verbosity, at DEBUG levels. For normal use, they are intended to be logged at INFO. You'll find c3p0 to be very verbose in general if you let it log at DEBUG. c3p0 looks for config information is a series of standard places on initialization, the majority of which are never used in most installations. So, the config library encounters a bunch of FileNotFoundExceptions which are expected and harmless, but per the err verbosely philosophy, are logged at DEBUG. This is arguably an error even in erring verbose, you are not the only one to complain. Maybe those should be restricted only to a TRACE/FINEST level, or omitted entirely. But that's the deal for now, it's just extra information logged about what's going on at a DEBUG log level. Set the logging level for com.mchange.* to INFO (and maybe selectively set the threshold lower of there are com.mchange libraries you want verbosity from) and things will be much better. |
Ok, logback config to the rescue. Thanks for the help. |
I've got a small project setup with SLF4J & Logback and c3p0.
I've created a
c3p0.properties
file in the root of my app's classpath:I'm creating a pooled data source:
c3po is generating stacktrace noise which I believe is benign, but clutters my logs & console - especially during unit tests. Examples...
These exceptions are repeated a couple times each. I could play with log levels and package filtering but I'm wondering if these exceptions are inadvertent or planned.
The text was updated successfully, but these errors were encountered: