瀏覽代碼

优化fcm推送结果打印

locky 1 周之前
父節點
當前提交
c26c0511c3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Service/PushService.py

+ 2 - 2
Service/PushService.py

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