@@ -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,