瀏覽代碼

fcm推送v1打印

zhangdongming 7 月之前
父節點
當前提交
230b329189
共有 1 個文件被更改,包括 2 次插入1 次删除
  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