1. Jeffrey Goettsch
  2. py-pushnotify

Commits

Jeffrey Goettsch  committed cdc5dec

pushover.Client now logs HTTP GET and POST operations.

  • Participants
  • Parent commits 3074b38
  • Branches default

Comments (0)

Files changed (1)

File pushnotify/pushover.py

View file
 
     def _parse_response(self, stream, verify=False):
 
-        response = json.loads(stream.read())
+        response = stream.read()
+        self.logger.info('received response: {0}'.format(response))
+
+        response = json.loads(response)
 
         self._last_code = stream.code
         if 'device' in response.keys():
 
     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)