diff --git a/sygnal/gcmpushkin.py b/sygnal/gcmpushkin.py index c0e873da..7b7383dd 100644 --- a/sygnal/gcmpushkin.py +++ b/sygnal/gcmpushkin.py @@ -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(