Open GoogleCodeExporter opened 8 years ago
Actually it would be better to make Slf4jSpyLogDelegator.methodReturned()
accept "Object returnMsg" and convert it into the String inside of
"if(logger.isInfoEnabled())" instead of accepting "String returnMsg".
Original comment by Roman.Si...@gmail.com
on 31 Jan 2014 at 9:51
Hmm, I agree with your suggestions, but it would impact existing code a lot: I
would need to go through all the "historical" log4jdbc code, using the
`reportReturn` methods; also I would need to modify the signature of the
SpyLogDelegator interface, which will break existing applications with custom
SpyLogDelegators.
But I agree that this is a required modification, I just need to think about it
a bit more.
In the meantime, are you sure that all your loggers are off? Because in that
case, DataSourceSpy is supposed to return the real JDBC connection, not wrapped
into a ConnectionSpy (see the condition `if
(spyLogDelegator.isJdbcLoggingEnabled())` in the `getConnection` methods. You
shouldn't see any use of ResultSetSpy.
Original comment by frederic...@gmail.com
on 11 Feb 2014 at 4:59
Probably one logger is set up with ERROR level
Original comment by Roman.Si...@gmail.com
on 1 Apr 2014 at 5:11
Original issue reported on code.google.com by
Roman.Si...@gmail.com
on 31 Jan 2014 at 9:44