Browse Source

打印华为推送参数

locky 2 năm trước cách đây
mục cha
commit
88dd04fb7c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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,