Explorar o código

打印IOS推送响应状态码

locky %!s(int64=2) %!d(string=hai) anos
pai
achega
b6ab7161ad
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Service/PushService.py

+ 1 - 0
Service/PushService.py

@@ -131,6 +131,7 @@ class PushObject:
                                     mutable_content=True)
             n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
             res = cli.push(n=n, device_token=token_val, topic=app_bundle_id)
+            logger.info('IOS推送响应状态码{}'.format(res.status_code))
             assert res.status_code == 200
         except Exception as e:
             logger.info('--->IOS推送异常{}'.format(repr(e)))