Administrator
2023-10-10 be05d21a0040070375ef591e854915a44d779bad
撤单错误日志记录
1个文件已修改
7 ■■■■■ 已修改文件
l2/l2_data_manager_new.py 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_manager_new.py
@@ -441,7 +441,7 @@
            except Exception as e:
                logging.exception(e)
                async_log_util.error(logger_l2_error,
                                     f"参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index}")
                                     f"S撤出错 参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index}")
                async_log_util.exception(logger_l2_error, e)
            finally:
                # l2_data_log.l2_time(code, round(t.time() * 1000) - _start_time,
@@ -464,7 +464,7 @@
                    return b_cancel_data, "H撤销比例触发阈值"
            except Exception as e:
                async_log_util.error(logger_l2_error,
                                     f"参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index}")
                                     f"H撤出错 参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index}")
                async_log_util.exception(logger_l2_error, e)
            finally:
                # l2_data_log.l2_time(code, round(t.time() * 1000) - _start_time, "已下单-H撤大单计算")
@@ -484,10 +484,9 @@
                    return b_cancel_data, f"L撤销比例触发阈值({extra_msg})"
            except Exception as e:
                async_log_util.error(logger_l2_error,
                                     f"参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index} 错误原因:{str(e)}")
                                     f"L撤出错 参数:buy_single_index-{_buy_single_index} buy_exec_index-{_buy_exec_index} 错误原因:{str(e)}")
                logger_l2_error.exception(e)
                async_log_util.exception(logger_l2_error, e)
                raise e
            finally:
                # l2_data_log.l2_time(code, round(t.time() * 1000) - _start_time, "已下单-L撤大单计算")