From: Michael Tremer Date: Sun, 22 Jun 2014 11:00:04 +0000 (+0000) Subject: Include HTTP status code in debugging output. X-Git-Tag: 001~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09c496c58a46480261fcd8d6378e15e0f95bd8eb;p=ddns.git Include HTTP status code in debugging output. --- diff --git a/src/ddns/system.py b/src/ddns/system.py index 5885c63..afc5a5f 100644 --- a/src/ddns/system.py +++ b/src/ddns/system.py @@ -160,7 +160,7 @@ class DDNSSystem(object): resp = urllib2.urlopen(req, timeout=timeout) # Log response header. - logger.debug(_("Response header:")) + logger.debug(_("Response header (Status Code %s):") % resp.code) for k, v in resp.info().items(): logger.debug(" %s: %s" % (k, v))