Fix enable_traceback still used issue (#12421)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/12412/head
congqixia 2021-11-29 23:45:41 +08:00 committed by GitHub
parent 6439887eb7
commit 4dc2730bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ def api_request(_list, **kwargs):
arg.append(a)
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":
# if enable_traceback == "True":
if kwargs.get("enable_traceback", True):
log.debug("(api_request) : [%s] args: %s, kwargs: %s" % (func.__qualname__, log_arg, str(kwargs)))
return func(*arg, **kwargs)
return False, False