more logging

pull/53/head
Zlatin Balevsky 2020-10-22 08:49:38 +01:00
parent 6107d1e298
commit 7d8c43c9d3
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 2 deletions

View File

@ -164,9 +164,9 @@ class H2HostCache extends HostCache {
if (rows.size() < settings.hostProfileHistory)
return
def lastTstamp = rows[rows.size() - 1].TSTAMP
def lastTstamp = rows[settings.hostProfileHistory - 1].TSTAMP
sql.execute("delete from HOST_ATTEMPTS where DESTINATION=${d.toBase64()} and TSTAMP < $lastTstamp")
log.fine("deleted $sql.updateCount old attempts")
log.fine("deleted $sql.updateCount old attempts older than $lastTstamp")
}
@Override