protected String buildLogString(DatabaseCall dbCall, long connectionHash, long totalTime) { StringBuilder buf = new StringBuilder(); buf.append("<t ").append(Thread.currentThread().hashCode()); if (connectionHash != -1) { buf.append(", conn ").append(connectionHash); } buf.append("> "); if (totalTime != -1) { buf.append("[").append(totalTime).append(" ms] spent"); } else { buf.append(dbCall.getLogString(this)); } return buf.toString(); } //cuba end
incrementCallCount(session); if (session.shouldLog(SessionLog.FINE, SessionLog.SQL)) {// Avoid printing if no logging required. session.log(SessionLog.FINE, SessionLog.SQL, dbCall.getLogString(this), (Object[])null, this, false);
incrementCallCount(session); if (session.shouldLog(SessionLog.FINE, SessionLog.SQL)) {// Avoid printing if no logging required. session.log(SessionLog.FINE, SessionLog.SQL, dbCall.getLogString(this), (Object[])null, this, false);