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
|
@ -418,7 +418,15 @@ public class LoggingConnectionDecorator implements ConnectionDecorator {
|
|||
*/
|
||||
private void logSQL(Statement stmnt) throws SQLException {
|
||||
if (_logs.isSQLEnabled())
|
||||
_logs.logSQL("executing " + stmnt, this);
|
||||
_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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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