Include HTTP status code in debugging output.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Jun 2014 11:00:04 +0000 (11:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Jun 2014 11:00:04 +0000 (11:00 +0000)
src/ddns/system.py

index 5885c63..afc5a5f 100644 (file)
@@ -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))