Skip to content

Commit

Permalink
slight update to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Dec 15, 2024
1 parent d5d0085 commit e731e12
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions apprise/plugins/gmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,16 +639,9 @@ def _fetch(self, url, payload=None, headers=None,
requests.codes.ok, requests.codes.created,
requests.codes.accepted):

# We had a problem
status_str = \
NotifyGMail.http_response_code_lookup(r.status_code)

self.logger.warning(
'Failed to send GMail to {}: '
'{}error={}.'.format(
url,
', ' if status_str else '',
r.status_code))
'Failed to send GMail to %s [error=%d]',
url, r.status_code)

self.logger.debug(
'Response Details:\r\n{}'.format(r.content))
Expand Down

0 comments on commit e731e12

Please sign in to comment.