Browse Source

优化fcm推送结果打印

locky 1 week ago
parent
commit
c26c0511c3
1 changed files with 2 additions and 2 deletions
  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
             # registration token.
             result = messaging.send(message)
-            LOGGER.info('fcm推送结果:{}'.format(result))
+            LOGGER.info('uid:{}fcm推送结果:{}'.format(uid, result))
             return True
         except Exception as e:
-            LOGGER.info('fcm推送异常:{}'.format(repr(e)))
+            LOGGER.info('uid:{}fcm推送异常:{}'.format(uid, repr(e)))
             return False
 
     @staticmethod