mirror of https://github.com/caronc/apprise
slight update to logging
parent
76158bd747
commit
d508c93406
|
@ -639,16 +639,9 @@ class NotifyGMail(NotifyBase):
|
||||||
requests.codes.ok, requests.codes.created,
|
requests.codes.ok, requests.codes.created,
|
||||||
requests.codes.accepted):
|
requests.codes.accepted):
|
||||||
|
|
||||||
# We had a problem
|
|
||||||
status_str = \
|
|
||||||
NotifyGMail.http_response_code_lookup(r.status_code)
|
|
||||||
|
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'Failed to send GMail to {}: '
|
'Failed to send GMail to %s [error=%d]',
|
||||||
'{}error={}.'.format(
|
url, r.status_code)
|
||||||
url,
|
|
||||||
', ' if status_str else '',
|
|
||||||
r.status_code))
|
|
||||||
|
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
'Response Details:\r\n{}'.format(r.content))
|
'Response Details:\r\n{}'.format(r.content))
|
||||||
|
|
Loading…
Reference in New Issue