Skip to content

Commit

Permalink
Add GCM response log
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jul 30, 2024
1 parent 3358af4 commit 8975fa1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sygnal/gcmpushkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,12 @@ def _handle_v1_response(
log.info("Reg IDs %r get 404 response; assuming unregistered", pushkeys)
return pushkeys, []
elif 200 <= response.code < 300:
try:
resp_object = json_decoder.decode(response_text)
except ValueError:
resp_object = None
# Beeper: log responses
log.info("Sent GCM push, response=%r", resp_object)
return [], []
else:
raise NotificationDispatchException(
Expand Down

0 comments on commit 8975fa1

Please sign in to comment.