From: Sarah Hoffmann Date: Wed, 7 Feb 2018 21:04:15 +0000 (+0100) Subject: change date in ban script to something fail2ban understands X-Git-Tag: deploy~347 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/984ca0a4636a2221a176caf566a1e90dc5691a07 change date in ban script to something fail2ban understands --- diff --git a/utils/cron_ipanalyse.py b/utils/cron_ipanalyse.py index 4625de70..7975cb17 100755 --- a/utils/cron_ipanalyse.py +++ b/utils/cron_ipanalyse.py @@ -374,7 +374,7 @@ if __name__ == '__main__': fd.close() # TODO write logs (need to collect some statistics) - logstr = datetime.now().strftime('%Y-%m-%d %H:%M') + ' %s %s\n' + logstr = datetime.now().strftime('%d/%b/%Y:%H:%M:%S') + ' %s %s\n' fd = open(LOGFILE, 'a') if unblocked: fd.write(logstr % ('unblocked:', ', '.join(unblocked)))