Quellcode durchsuchen

打印IOS推送响应状态码

locky vor 2 Jahren
Ursprung
Commit
b6ab7161ad
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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)))