Browse Source

py-i2phosts-maint: improve log messages

pull/1/head
Hidden Z 14 years ago
parent
commit
0f66ec2d49
  1. 4
      py-i2phosts-maint

4
py-i2phosts-maint

@ -40,13 +40,13 @@ for host in all_hosts: @@ -40,13 +40,13 @@ for host in all_hosts:
# delete external hosts which we never seen after 365 days of inactivity
if host.external == True:
if dl > datetime.timedelta(days=365):
log.info('deleting %s, reason: external host, 365 days inactive', host.name)
log.info('deleting %s, reason: external host, never seen for 365 days', host.name)
host.delete()
continue
# delete hosts added by us and never seen after 14 days of inactivity
else:
if dl > datetime.timedelta(days=14):
log.info('deleting %s, reason: internal host, 14 days inactive', host.name)
log.info('deleting %s, reason: internal host, never seen for 14 days', host.name)
host.delete()
continue
else:

Loading…
Cancel
Save