Skip to content

Commit

Permalink
added more debugging information around sent notification; refs #2
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Jul 30, 2015
1 parent 3691f20 commit 09692eb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Notify/pnotify/NotifyGrowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,17 @@ def _notify(self, title, body, notify_type, **kwargs):
payload['icon'] = icon

try:
self.growl.notify(**payload)
response = self.growl.notify(**payload)
if not isinstance(response, bool):
self.logger.warning(
'Growl notification failed to send with response: %s' % \
str(response),
)

self.logger.debug(
'Growl notification sent successfully.'
)
else:
self.logger.debug(
'Growl notification sent successfully.'
)

except GrowlNetworkError as e:
# Since Growl servers listen for UDP broadcasts,
Expand Down

0 comments on commit 09692eb

Please sign in to comment.