Hello Petr,

Why you can't use close() instead closeQuietly()?
QueryRunner uses the close() methods also.

And as I know dependancy on Commons-logging is avoided intentionaly.

Best regards,
Mikhail Krivoshein

Petr Hollay wrote:

Hello all,



one question to DbUtils class: methods closeQuietly() don't throw
SQLExceptions.



Would you consider to add dependency on Commons-Logging and add log.error()
(or maybe warn() ) logging into catch parts of those methods?



Idea behind is that in production environment it might be useful to be
informed that something went wrong when closing JDBC
Connection/Statement/ResultSet.



I didn't find any discussion on this topic in mail archive.



Best regards

Petr









--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to