@@ -113,19 +113,19 @@ void OrtModel::reset(std::unordered_map<std::string, std::string> optionsMap)
113113 (pImplOrt->sessionOptions ).SetLogSeverityLevel (OrtLoggingLevel (loggingLevel));
114114
115115 pImplOrt->env = std::make_shared<Ort::Env>(
116- OrtLoggingLevel (loggingLevel),
116+ OrtLoggingLevel (loggingLevel),
117117 (optionsMap[" onnx-environment-name" ].empty () ? " onnx_model_inference" : optionsMap[" onnx-environment-name" ].c_str ()),
118118 // Integrate ORT logging into Fairlogger
119119 [](void * param, OrtLoggingLevel severity, const char * category, const char * logid, const char * code_location, const char * message) {
120- if (severity == ORT_LOGGING_LEVEL_VERBOSE) {
120+ if (severity == ORT_LOGGING_LEVEL_VERBOSE) {
121121 LOG (debug) << " (ORT) [" << logid << " |" << category << " |" << code_location << " ]: " << message;
122- } else if (severity == ORT_LOGGING_LEVEL_INFO) {
122+ } else if (severity == ORT_LOGGING_LEVEL_INFO) {
123123 LOG (info) << " (ORT) [" << logid << " |" << category << " |" << code_location << " ]: " << message;
124- } else if (severity == ORT_LOGGING_LEVEL_WARNING) {
124+ } else if (severity == ORT_LOGGING_LEVEL_WARNING) {
125125 LOG (warning) << " (ORT) [" << logid << " |" << category << " |" << code_location << " ]: " << message;
126- } else if (severity == ORT_LOGGING_LEVEL_ERROR) {
126+ } else if (severity == ORT_LOGGING_LEVEL_ERROR) {
127127 LOG (error) << " (ORT) [" << logid << " |" << category << " |" << code_location << " ]: " << message;
128- } else if (severity == ORT_LOGGING_LEVEL_FATAL) {
128+ } else if (severity == ORT_LOGGING_LEVEL_FATAL) {
129129 LOG (fatal) << " (ORT) [" << logid << " |" << category << " |" << code_location << " ]: " << message;
130130 } else {
131131 LOG (info) << " (ORT) [" << logid << " |" << category << " |" << code_location << " ]: " << message;
0 commit comments