@ -37,10 +37,6 @@ public class HsqlEventCleanupRepository extends JpaAbstractDaoListeningExecutorS
PreparedStatementstmt=connection.prepareStatement("DELETE FROM event WHERE ts < ? AND event_type != 'DEBUG_RULE_NODE' AND event_type != 'DEBUG_RULE_CHAIN'")){
stmt.setLong(1,otherExpirationTime);
stmt.execute();
try(ResultSetresultSet=stmt.getResultSet()){
resultSet.next();
log.info("Events removed by ttl: [{}]",resultSet.getLong(1));
}
}catch(SQLExceptione){
log.error("SQLException occurred during events TTL task execution ",e);
}
@ -49,10 +45,6 @@ public class HsqlEventCleanupRepository extends JpaAbstractDaoListeningExecutorS
PreparedStatementstmt=connection.prepareStatement("DELETE FROM event WHERE ts < ? AND (event_type = 'DEBUG_RULE_NODE' OR event_type = 'DEBUG_RULE_CHAIN')")){
stmt.setLong(1,debugExpirationTime);
stmt.execute();
try(ResultSetresultSet=stmt.getResultSet()){
resultSet.next();
log.info("Debug Events removed by ttl: [{}]",resultSet.getLong(1));
}
}catch(SQLExceptione){
log.error("SQLException occurred during events TTL task execution ",e);