Quellcode durchsuchen

fcm推送v1打印

zhangdongming vor 7 Monaten
Ursprung
Commit
230b329189
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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