未验证 提交 e1839e35 编写于 作者: E elstic 提交者: GitHub

Code optimisation of api_request (#17918)

Signed-off-by: Nelstic <hao.wang@zilliz.com>
上级 034fe5b8
......@@ -44,10 +44,7 @@ def api_request(_list, **kwargs):
if isinstance(_list, list):
func = _list[0]
if callable(func):
arg = []
if len(_list) > 1:
for a in _list[1:]:
arg.append(a)
arg = _list[1:]
arg_str = str(arg)
log_arg = arg_str[0:log_row_length] + '......' if len(arg_str) > log_row_length else arg_str
# if enable_traceback == "True":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册