summaryrefslogtreecommitdiffstats
path: root/mirrors/management/commands
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-22 00:29:45 +0200
committerDan McGee <dan@archlinux.org>2010-09-22 00:29:45 +0200
commitb8a78408ff194ca2f822979fec5598778eff5826 (patch)
tree56ef46c0946401b17337e43dea638cc32b5fe8d6 /mirrors/management/commands
parent1f44788e1e701f78f71ba526183313bd0c4593aa (diff)
downloadarchweb-b8a78408ff194ca2f822979fec5598778eff5826.tar.gz
archweb-b8a78408ff194ca2f822979fec5598778eff5826.tar.xz
Small updates to mirrorcheck command
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/management/commands')
-rw-r--r--mirrors/management/commands/mirrorcheck.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/mirrors/management/commands/mirrorcheck.py b/mirrors/management/commands/mirrorcheck.py
index c2ab077..1662b15 100644
--- a/mirrors/management/commands/mirrorcheck.py
+++ b/mirrors/management/commands/mirrorcheck.py
@@ -42,7 +42,7 @@ class Command(NoArgsCommand):
if v == 0:
logger.level = ERROR
elif v == 1:
- logger.level = INFO
+ logger.level = WARNING
elif v == 2:
logger.level = DEBUG
@@ -84,8 +84,10 @@ def check_mirror_url(mirror_url):
try:
parsed_time = datetime.utcfromtimestamp(int(data))
except ValueError:
- logger.debug("attempting to parse generated lastsync file"
- " from mirror %s, value %s" % (url, data))
+ # it is bad news to try logging the lastsync value;
+ # sometimes we get a crazy-encoded web page.
+ logger.info("attempting to parse generated lastsync file"
+ " from mirror %s" % url)
parsed_time = parse_rfc3339_datetime(data)
log.last_sync = parsed_time