瀏覽代碼

打印IOS推送响应状态码

locky 2 年之前
父節點
當前提交
b6ab7161ad
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)))