Parcourir la source

打印fcm推送结果

locky il y a 3 ans
Parent
commit
d013a0d633
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      Service/GatewayService.py

+ 2 - 0
Service/GatewayService.py

@@ -58,6 +58,7 @@ class GatewayPushService:
     # android fcm 推送
     @staticmethod
     def android_fcm_push(nickname, app_bundle_id, token_val, n_time, event_type, msg_title, msg_text, image=''):
+        logger = logging.getLogger('info')
         try:
             serverKey = FCM_CONFIG[app_bundle_id]
             push_service = FCMNotification(api_key=serverKey)
@@ -74,6 +75,7 @@ class GatewayPushService:
                                                                      'default_light_settings': True,
                                                                      }
                                                        )
+            logger.info('fcm推送结果:{}'.format(result))
             return result
         except Exception as e:
             return repr(e)