瀏覽代碼

定制化推送增加打印2

locky 1 年之前
父節點
當前提交
166eb0e244
共有 1 個文件被更改,包括 4 次插入1 次删除
  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