Ver Fonte

定制化推送增加打印2

locky há 1 ano atrás
pai
commit
166eb0e244
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      Service/CustomizedPushService.py

+ 4 - 1
Service/CustomizedPushService.py

@@ -109,7 +109,8 @@ class CustomizedPushObject:
 
             CUSTOMIZED_PUSH_LOGGER.info('customized_push_id:{}推送完成'.format(kwargs['id']))
         except Exception as e:
-            CUSTOMIZED_PUSH_LOGGER.info('定制化推送异常,error_line:{},error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
+            CUSTOMIZED_PUSH_LOGGER.info('定制化推送或保存数据异常,'
+                                        'error_line:{},error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
 
     @staticmethod
     def push_msg(push_type, app_bundle_id, token_val, n_time, title, msg, icon_link):
@@ -158,4 +159,6 @@ class CustomizedPushObject:
             else:
                 return False
         except Exception as e:
+            CUSTOMIZED_PUSH_LOGGER.info('定制化推送异常,'
+                                        'error_line:{},error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
             return False