From 418623355ae263664e7440a72dbc3b72dcd24caf Mon Sep 17 00:00:00 2001 From: Yulong Wang Date: Mon, 3 May 2021 16:01:41 -0700 Subject: [PATCH] disable logging for WASM in inference session ctor (#7545) --- onnxruntime/core/session/inference_session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/session/inference_session.cc b/onnxruntime/core/session/inference_session.cc index 04ed044ba5..0dad74c0d7 100644 --- a/onnxruntime/core/session/inference_session.cc +++ b/onnxruntime/core/session/inference_session.cc @@ -297,7 +297,7 @@ void InferenceSession::ConstructorCommon(const SessionOptions& session_options, // Add log to allow serving platforms to quantify ORT usage. // To avoid flooding the test logs, this is done for non-debug mode only // TODO: plug-in a platform specific telemetry provider to send the telemetry to -#ifdef NDEBUG +#if defined(NDEBUG) && !defined(__wasm__) #ifdef _WIN32 std::wostringstream ostr; #else