X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e70ff539d3e3d53c11ea80a99f82749ec0312cb4..2cb5e7b0cc7225daa81ca872449370727bbef07b:/utils/cron_ipanalyse.py?ds=inline diff --git a/utils/cron_ipanalyse.py b/utils/cron_ipanalyse.py index 4625de70..1ca2267f 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))) @@ -389,6 +389,6 @@ if __name__ == '__main__': if blocked: fd.write(logstr % ('new block:', ', '.join(blocked))) for k,v in stats.items(): - if v.ignores_warnings() and k not in notlogged: + if v.ignores_warnings() and k not in notlogged and ':' not in k: fd.write(logstr % ('Warning ignored:', k)) fd.close()