From: Michael Tremer Date: Fri, 14 Jul 2023 10:26:55 +0000 (+0000) Subject: importer: Decrease the log level if Spamhaus' files are empty X-Git-Tag: 0.9.17~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4efa6d841d10c3c86d37bfdec80b3d422d85709a;p=location%2Flibloc.git importer: Decrease the log level if Spamhaus' files are empty Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index 3607e19..28a4f6c 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -1702,7 +1702,7 @@ class CLI(object): if len(fcontent) > 10: self.db.execute("DELETE FROM network_overrides WHERE source = %s", name) else: - log.error("%s (%s) returned likely bogus file, ignored" % (name, url)) + log.warning("%s (%s) returned likely bogus file, ignored" % (name, url)) continue # Iterate through every line, filter comments and add remaining networks to @@ -1754,7 +1754,7 @@ class CLI(object): if len(fcontent) > 10: self.db.execute("DELETE FROM autnum_overrides WHERE source = %s", name) else: - log.error("%s (%s) returned likely bogus file, ignored" % (name, url)) + log.warning("%s (%s) returned likely bogus file, ignored" % (name, url)) continue # Iterate through every line, filter comments and add remaining ASNs to