From e731e122b4ba0c2fa4607e63010923b64ba65e04 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sun, 15 Dec 2024 11:22:14 -0500 Subject: [PATCH] slight update to logging --- apprise/plugins/gmail.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/apprise/plugins/gmail.py b/apprise/plugins/gmail.py index 521d3066e..2f5405370 100644 --- a/apprise/plugins/gmail.py +++ b/apprise/plugins/gmail.py @@ -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))