SF.net SVN: gar:[23094] csw/mgar/gar/v2/lib/python/rest.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Mar 1 14:14:55 CET 2014


Revision: 23094
          http://sourceforge.net/p/gar/code/23094
Author:   wahwah
Date:     2014-03-01 13:14:53 +0000 (Sat, 01 Mar 2014)
Log Message:
-----------
checkpkg: rest.py Move debug logging back to debug

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/rest.py

Modified: csw/mgar/gar/v2/lib/python/rest.py
===================================================================
--- csw/mgar/gar/v2/lib/python/rest.py	2014-03-01 12:54:34 UTC (rev 23093)
+++ csw/mgar/gar/v2/lib/python/rest.py	2014-03-01 13:14:53 UTC (rev 23094)
@@ -246,7 +246,7 @@
                          exceptions=(RestCommunicationError, pycurl.error))
   def GetBlob(self, tag, md5_sum):
     url = self.releases_url + "/blob/%s/%s/" % (tag, md5_sum)
-    logging.warning('GetBlob() url=%r', url)
+    logging.debug('GetBlob() url=%r', url)
     c = pycurl.Curl()
     d = StringIO()
     h = StringIO()
@@ -258,13 +258,13 @@
       c.setopt(c.VERBOSE, 1)
     c.perform()
     http_code = c.getinfo(pycurl.HTTP_CODE)
-    logging.warning(
+    logging.debug(
         "curl getinfo: %s %s %s",
         type(http_code),
         http_code,
         c.getinfo(pycurl.EFFECTIVE_URL))
     c.close()
-    logging.warning("HTTP code: %s", http_code)
+    logging.debug("HTTP code: %s", http_code)
     if http_code == 401:
       raise RestCommunicationError("Received HTTP code {0}".format(http_code))
     successful = (http_code >= 200 and http_code <= 299)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list