Closed GoogleCodeExporter closed 9 years ago
this is my config on spring:
<bean id="parentDataSource" class="org.apache.commons.dbcp.BasicDataSource" abstract="true">
<property name="driverClassName" value="net.sf.log4jdbc.DriverSpy"/>
<property name="username" value="${db.username}" />
<property name="password" value="${db.password}" />
<property name="initialSize" value="5"/>
<property name="validationQuery" value="select 1" />
<property name="defaultAutoCommit" value="false" />
<property name="maxActive" value="100" />
<property name="maxIdle" value="10" />
<property name="maxWait" value="15000" />
<property name="removeAbandoned" value="true" />
<property name="removeAbandonedTimeout" value="300" />
<property name="testOnBorrow" value="true" />
</bean>
Original comment by rvelo...@gmail.com
on 1 Feb 2012 at 11:37
This is not a bug, rather it's designed to work this way. The exception is
being thrown by the application.
It's probably a good idea to have an option to suppress logging of exceptions
entirely-- but not something I will get around to adding any time soon.
You may want to create a feature request for specific change.
If you want to modify your copy of log4jdbc to suppress a specific SQL
exception, http://code.google.com/p/log4jdbc/source/detail?r=86 is an example
of where it was done in another context.
Original comment by arthur.b...@gmail.com
on 2 Feb 2012 at 3:31
What about the triplication of exception throwing in sqlonly, sqltiming and
jdbc.audit? this is really bad for people that use spring and alerts on error
logs
Original comment by rvelo...@gmail.com
on 2 Feb 2012 at 6:05
Original issue reported on code.google.com by
rvelo...@gmail.com
on 1 Feb 2012 at 11:07