Skip to content

Commit

Permalink
MQTT Service logs a successful transmission (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc authored Sep 10, 2023
1 parent 15e16ad commit 1b2d1ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apprise/plugins/NotifyMQTT.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ def send(self, body, title='', notify_type=NotifyType.INFO, **kwargs):
self.logger.debug('Socket Exception: %s' % str(e))
return False

if not has_error:
# Verbal notice
self.logger.info('Sent MQTT notification')

return not has_error

def url(self, privacy=False, *args, **kwargs):
Expand Down

0 comments on commit 1b2d1ca

Please sign in to comment.