Skip to content

Commit

Permalink
[mattermost] Better logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Jan 3, 2025
1 parent b33cdb6 commit dca956d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion law/contrib/mattermost/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _notify_mattermost(hook_url, request_data):
try:
res = requests.post(hook_url, json=request_data)
if not res.ok:
logger.warning("unsuccessful Mattermost API call: {}".format(res))
logger.warning("unsuccessful Mattermost API call: {}".format(res.text))
except Exception as e:
t = traceback.format_exc()
logger.warning("could not send Mattermost notification: {}\n{}".format(e, t))

0 comments on commit dca956d

Please sign in to comment.