if(log.isDebugEnabled()) {
if(log.isErrorEnabled()) {
    protected int executeUpdate(String query) throws SQLException {        if (query == null) throw new IllegalArgumentException("executeUpdate: null query");        try {            long startTime = 0;            if (pwlog != null)                startTime = System.currentTimeMillis();            int result = updateStmt.executeUpdate(query);            if (pwlog != null) {                long endTime = System.currentTimeMillis();                pwlog.println((endTime - startTime) + " " + query);            }            return result;        } catch (SQLException sqle) {          if(log.isDebugEnabled()) {            log.error("SQLException query: " + query);          }          if (pwlog != null) {            pwlog.println("SQLException query: " + query);            pwlog.flush();          }          throw sqle;        }    }