[skip ci] Update setup_logging func on benchmark (#10269)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/10298/head
wt 2021-10-20 19:15:23 +08:00 committed by GitHub
parent bb1086659b
commit 6b487e2aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -20,5 +20,4 @@ def setup_logging(config_path=LOG_CONFIG_PATH, default_level=logging.INFO):
log_config["handlers"]["info_file_handler"].update({"filename": FILE_NAME})
logging.config.dictConfig(log_config)
except Exception:
raise
logging.error('Failed to open file', exc_info=True)
raise logging.error('Failed to open file', exc_info=True)