소스 검색

打印华为推送参数

locky 2 년 전
부모
커밋
88dd04fb7c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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,