diff OrthancStone/Sources/Oracle/WebAssemblyOracle.cpp @ 1572:1b3039384972

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 18:13:52 +0200
parents a48ae10857b1
children
line wrap: on
line diff
--- a/OrthancStone/Sources/Oracle/WebAssemblyOracle.cpp	Mon Sep 21 17:46:39 2020 +0200
+++ b/OrthancStone/Sources/Oracle/WebAssemblyOracle.cpp	Mon Sep 21 18:13:52 2020 +0200
@@ -342,19 +342,21 @@
     {
       std::unique_ptr<FetchContext> context(reinterpret_cast<FetchContext*>(fetch->userData));
 
+#if 0
       {
         const size_t kEmscriptenStatusTextSize = sizeof(emscripten_fetch_t::statusText);
         char message[kEmscriptenStatusTextSize + 1];
         memcpy(message, fetch->statusText, kEmscriptenStatusTextSize);
         message[kEmscriptenStatusTextSize] = 0;
 
-        /*LOG(ERROR) << "Fetching " << fetch->url
+        LOG(ERROR) << "Fetching " << fetch->url
                    << " failed, HTTP failure status code: " << fetch->status
                    << " | statusText = " << message
                    << " | numBytes = " << fetch->numBytes
                    << " | totalBytes = " << fetch->totalBytes
-                   << " | readyState = " << fetch->readyState;*/
+                   << " | readyState = " << fetch->readyState;
       }
+#endif
 
       {
         OracleCommandExceptionMessage message