if zulip send fails, log the reason at level=warning

pull/1330/head
drewp@bigasterisk.com 2025-05-10 19:19:27 -07:00
parent d0e9fb9e89
commit a14b88d109
1 changed files with 3 additions and 3 deletions

View File

@ -284,7 +284,7 @@ class NotifyZulip(NotifyBase):
self.logger.debug('Zulip POST URL: %s (cert_verify=%r)' % ( self.logger.debug('Zulip POST URL: %s (cert_verify=%r)' % (
url, self.verify_certificate, url, self.verify_certificate,
)) ))
self.logger.debug('Zulip Payload: %s' % str(payload)) self.logger.warning('Zulip Payload: %s' % str(payload))
# Always call throttle before any remote server i/o is made # Always call throttle before any remote server i/o is made
self.throttle() self.throttle()
@ -311,8 +311,8 @@ class NotifyZulip(NotifyBase):
', ' if status_str else '', ', ' if status_str else '',
r.status_code)) r.status_code))
self.logger.debug( self.logger.warning('Response Details:\r\n{}'.format(
'Response Details:\r\n{}'.format(r.content)) r.content))
# Mark our failure # Mark our failure
has_error = True has_error = True