webhook fixes
This commit is contained in:
@@ -22,5 +22,4 @@ class Webhook(object):
|
||||
elif self.method.lower() == "post":
|
||||
requests.post(url=url)
|
||||
else:
|
||||
raise ValueError("Invalid method., use POST or GET")
|
||||
|
||||
raise ValueError("Invalid method, use POST or GET")
|
||||
|
||||
@@ -230,6 +230,8 @@ class GlobalFormatter(logging.Formatter):
|
||||
if (
|
||||
self.settings.webhook is not None
|
||||
and skip_webhook is False
|
||||
and self.settings.webhook.endpoint
|
||||
!= "https://example.com/webhook"
|
||||
):
|
||||
self.settings.webhook.send(record.msg, record.event)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user