Skip to content

Commit

Permalink
Merge tag '2023-09-18_complete_plausible_eventlog' into develop
Browse files Browse the repository at this point in the history
Add headers and payload to plausible message
  • Loading branch information
Steven-Eardley committed Sep 18, 2023
2 parents 1e9a263 + e1001db commit f704067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portality/lib/plausible.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def send_event(goal: str, on_completed=None, **props_kwargs):
def _send():
resp = requests.post(plausible_api_url, json=payload, headers=headers)
if resp.status_code >= 300:
logger.warning(f'Send plausible event API fail: [{resp.url}][{resp.status_code}][{resp.text}]')
logger.warning(f'Send plausible event API fail. snd: [{resp.url}] [{headers}] [{payload}] rcv: [{resp.status_code}] [{resp.text}]')
if on_completed:
on_completed(resp)

Expand Down

0 comments on commit f704067

Please sign in to comment.