locky 2 лет назад
Родитель
Сommit
d18a4b5557
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Service/HuaweiPushService/HuaweiPushService.py

+ 2 - 2
Service/HuaweiPushService/HuaweiPushService.py

@@ -58,10 +58,10 @@ class HuaweiPushObject:
             # Case 3: use certifi Library
             import certifi
             response = messaging.send_message(message, verify_peer=certifi.where())
-            print('response is ', json.dumps(vars(response)))
+            logger.info('华为推送响应: {}'.format(json.dumps(vars(response))))
             assert (response.code == '80000000')
         except Exception as e:
-            print(repr(e))
+            logger.info('华为推送异常: {}'.format(repr(e)))
 
     @staticmethod
     def android_notification(msg_title, msg_text):