summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-16 17:16:18 -0500
committerDan McGee <dan@archlinux.org>2010-09-21 09:10:33 -0500
commit1f44788e1e701f78f71ba526183313bd0c4593aa (patch)
treec0b6143c64974f229403ebb4a707efac08e7174e
parent40ac4818aa7812a5399a0d4c176137984d5cfd30 (diff)
Add debugger when having to parse lastsync file
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--mirrors/management/commands/mirrorcheck.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mirrors/management/commands/mirrorcheck.py b/mirrors/management/commands/mirrorcheck.py
index 4a933ca7..c2ab077f 100644
--- a/mirrors/management/commands/mirrorcheck.py
+++ b/mirrors/management/commands/mirrorcheck.py
@@ -84,6 +84,8 @@ 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))
parsed_time = parse_rfc3339_datetime(data)
log.last_sync = parsed_time