diff --git a/onnxruntime/test/perftest/main.cc b/onnxruntime/test/perftest/main.cc index 7eda96801c..aa3fc68bc4 100644 --- a/onnxruntime/test/perftest/main.cc +++ b/onnxruntime/test/perftest/main.cc @@ -21,7 +21,8 @@ int real_main(int argc, char* argv[]) { } Ort::Env env{nullptr}; try { - OrtLoggingLevel logging_level = ORT_LOGGING_LEVEL_WARNING; + OrtLoggingLevel logging_level = test_config.run_config.f_verbose + ? ORT_LOGGING_LEVEL_VERBOSE : ORT_LOGGING_LEVEL_WARNING; env = Ort::Env(logging_level, "Default"); } catch (const Ort::Exception& e) { fprintf(stderr, "Error creating environment: %s \n", e.what());