From 1f44788e1e701f78f71ba526183313bd0c4593aa Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 16 Sep 2010 17:16:18 -0500 Subject: Add debugger when having to parse lastsync file Signed-off-by: Dan McGee --- mirrors/management/commands/mirrorcheck.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-54-g00ecf