mirror of https://github.com/apache/openjpa.git
Small log clarification.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@609775 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4140d243a4
commit
6f29454e48
|
@ -421,6 +421,14 @@ public class LoggingConnectionDecorator implements ConnectionDecorator {
|
|||
_logs.logSQL("executing " + stmnt, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Log time elapsed since given start.
|
||||
*/
|
||||
private void logBatchSQL(Statement stmnt) throws SQLException {
|
||||
if (_logs.isSQLEnabled())
|
||||
_logs.logSQL("executing batch " + stmnt, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle any {@link SQLWarning}s on the current {@link Connection}.
|
||||
*
|
||||
|
@ -864,7 +872,7 @@ public class LoggingConnectionDecorator implements ConnectionDecorator {
|
|||
}
|
||||
|
||||
public int[] executeBatch() throws SQLException {
|
||||
logSQL(this);
|
||||
logBatchSQL(this);
|
||||
long start = System.currentTimeMillis();
|
||||
try {
|
||||
return super.executeBatch();
|
||||
|
|
Loading…
Reference in New Issue