Sfoglia il codice sorgente

打印华为推送参数

locky 2 anni fa
parent
commit
88dd04fb7c
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      Service/HuaweiPushService/HuaweiPushService.py

+ 3 - 0
Service/HuaweiPushService/HuaweiPushService.py

@@ -1,4 +1,5 @@
 import json
+import logging
 
 from Service.HuaweiPushService import push_admin
 from Service.HuaweiPushService.push_admin import messaging
@@ -23,6 +24,8 @@ class HuaweiPushObject:
         :param: token
         :return:
         """
+        logger = logging.getLogger('info')
+        logger.info('华为推送参数:{}, {}, {}, {}'.format(msg_title, msg_text, image_url, token_val))
 
         notification = messaging.Notification(
             title=msg_title,