Commits

Jeffrey Goettsch  committed 3074b38

prowl.Client now logs HTTP GET and POST operations.

  • Participants
  • Parent commits 18e2f0e

Comments (0)

Files changed (1)

File pushnotify/prowl.py

 
     def _get(self, url):
 
+        self.logger.debug('_get requesting url: {0}'.format(url))
+
         request = urllib2.Request(url)
         try:
             response_stream = self._browser.open(request)
     def _parse_response(self, response, verify=False):
 
         xmlresp = response.read()
+        self.logger.info('received response: {0}'.format(xmlresp))
+
         root = ElementTree.fromstring(xmlresp)
 
         self._last_type = root[0].tag.lower()
 
     def _post(self, url, data):
 
+        self.logger.debug('_post sending data: {0}'.format(data))
+        self.logger.debug('_post sending to url: {0}'.format(url))
+
         request = urllib2.Request(url, data)
         try:
             response_stream = self._browser.open(request)