diff --git a/onnxruntime/core/common/logging/logging.cc b/onnxruntime/core/common/logging/logging.cc index 014316e46d3c9..9f930e3a182e8 100644 --- a/onnxruntime/core/common/logging/logging.cc +++ b/onnxruntime/core/common/logging/logging.cc @@ -266,7 +266,7 @@ std::unique_ptr EnhanceSinkWithEtw(std::unique_ptr existingSink, l // On non-Windows platforms, just return the existing logger (void)originalSeverity; (void)etwSeverity; - return existingLogger; + return existingSink; #endif // _WIN32 } diff --git a/onnxruntime/core/platform/windows/telemetry.cc b/onnxruntime/core/platform/windows/telemetry.cc index f3063219c7875..850f40e846248 100644 --- a/onnxruntime/core/platform/windows/telemetry.cc +++ b/onnxruntime/core/platform/windows/telemetry.cc @@ -216,17 +216,17 @@ void WindowsTelemetry::LogSessionCreation(uint32_t session_id, int64_t ir_versio // build the strings we need - std::string domain_to_verison_string; + std::string domain_to_version_string; bool first = true; for (auto& i : domain_to_version_map) { if (first) { first = false; } else { - domain_to_verison_string += ','; + domain_to_version_string += ','; } - domain_to_verison_string += i.first; - domain_to_verison_string += '='; - domain_to_verison_string += std::to_string(i.second); + domain_to_version_string += i.first; + domain_to_version_string += '='; + domain_to_version_string += std::to_string(i.second); } std::string model_metadata_string; @@ -271,7 +271,7 @@ void WindowsTelemetry::LogSessionCreation(uint32_t session_id, int64_t ir_versio TraceLoggingString(model_producer_version.c_str(), "modelProducerVersion"), TraceLoggingString(model_domain.c_str(), "modelDomain"), TraceLoggingBool(use_fp16, "usefp16"), - TraceLoggingString(domain_to_verison_string.c_str(), "domainToVersionMap"), + TraceLoggingString(domain_to_version_string.c_str(), "domainToVersionMap"), TraceLoggingString(model_graph_name.c_str(), "modelGraphName"), TraceLoggingString(model_metadata_string.c_str(), "modelMetaData"), TraceLoggingString(loaded_from.c_str(), "loadedFrom"), @@ -293,7 +293,7 @@ void WindowsTelemetry::LogSessionCreation(uint32_t session_id, int64_t ir_versio TraceLoggingString(model_producer_version.c_str(), "modelProducerVersion"), TraceLoggingString(model_domain.c_str(), "modelDomain"), TraceLoggingBool(use_fp16, "usefp16"), - TraceLoggingString(domain_to_verison_string.c_str(), "domainToVersionMap"), + TraceLoggingString(domain_to_version_string.c_str(), "domainToVersionMap"), TraceLoggingString(model_graph_name.c_str(), "modelGraphName"), TraceLoggingString(model_metadata_string.c_str(), "modelMetaData"), TraceLoggingString(loaded_from.c_str(), "loadedFrom"),