diff --git a/tests/perftest-scripts/taosadapter_perftest/config/env_init.py b/tests/perftest-scripts/taosadapter_perftest/config/env_init.py index 0ddb5b4e9ac513829d20b7ff2a5d2808716ba10c..c06f5023bfb62bc95267d3f33387169c400be898 100644 --- a/tests/perftest-scripts/taosadapter_perftest/config/env_init.py +++ b/tests/perftest-scripts/taosadapter_perftest/config/env_init.py @@ -7,7 +7,7 @@ current_time = time.strftime("%Y-%m-%d-%H:%M:%S", time.localtime(time.time())) current_dir = os.path.dirname(os.path.realpath(__file__)) config_file = os.path.join(current_dir, '../config/perf_test.yaml') f = open(config_file) -config = yaml.load(f) +config = yaml.load(f, Loader=yaml.FullLoader) log_file = os.path.join(current_dir, f'../log/performance_{current_time}.log') logger.add(log_file) logger.info(f'init env success, log will be export to {log_file}')