summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-21 17:29:45 -0500
committerDan McGee <dan@archlinux.org>2010-09-21 17:29:45 -0500
commitb8a78408ff194ca2f822979fec5598778eff5826 (patch)
tree56ef46c0946401b17337e43dea638cc32b5fe8d6 /mirrors
parent1f44788e1e701f78f71ba526183313bd0c4593aa (diff)
Small updates to mirrorcheck command
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-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 c2ab077f..1662b15c 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