Parcourir la source

fcm推送v1打印

zhangdongming il y a 7 mois
Parent
commit
230b329189
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Service/PushService.py

+ 2 - 1
Service/PushService.py

@@ -234,9 +234,10 @@ class PushObject:
             # Send a message to the device corresponding to the provided
             # registration token.
             result = messaging.send(message)
+            TIME_LOGGER.info('uid:{}fcm推送结果:{}'.format(uid, result))
             return True
         except Exception as e:
-            LOGGER.info('fcm推送异常:{}'.format(repr(e)))
+            TIME_LOGGER.error('uid:{}fcm推送异常:{}'.format(uid, repr(e)))
             return False
 
     @staticmethod