Преглед на файлове

优化fcm推送结果打印

locky преди 1 седмица
родител
ревизия
8c4dad5d09
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Service/PushService.py

+ 2 - 2
Service/PushService.py

@@ -242,10 +242,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