Selaa lähdekoodia

增加极光透传日志

peng 11 kuukautta sitten
vanhempi
commit
cbb3af694b
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      Service/PushService.py

+ 3 - 2
Service/PushService.py

@@ -637,6 +637,7 @@ class PushObject:
             push.message = jpush.message(msg_content=msg_text, title=msg_title, extras=extra_data)
             push.platform = jpush.all_
             res = push.send()
-            assert res.status_code == 200
+            LOGGER.info('极光透传,结果:{},参数:{}'.format(res, extra_data))
         except Exception as e:
-            return repr(e)
+            LOGGER.info('jpush_transparent_transmission极光透传异常:errLine:{}, errMsg:{}, 参数:{}'.format(
+                e.__traceback__.tb_lineno, repr(e), extra_data))