Mercurial > hg > orthanc-stone
changeset 991:92a043b8e431
removed logs from IObserver constructor
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 11 Sep 2019 12:15:21 +0200 |
parents | 3ea70a62ca00 |
children | f270852d3180 |
files | Framework/Messages/IObserver.h Platforms/Wasm/Defaults.cpp |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Messages/IObserver.h Wed Sep 11 10:43:21 2019 +0200 +++ b/Framework/Messages/IObserver.h Wed Sep 11 12:15:21 2019 +0200 @@ -45,10 +45,7 @@ // remember this is panic-level code to track zombie object usage std::string fingerprint = Orthanc::Toolbox::GenerateUuid(); const char* fingerprintRaw = fingerprint.c_str(); - ORTHANC_ASSERT(strlen(fingerprintRaw) == 36); - ORTHANC_ASSERT(fingerprintRaw[36] == 0); memcpy(fingerprint_, fingerprintRaw, 37); - LOG(TRACE) << "IObserver(" << std::hex << this << std::dec << ")::IObserver : fingerprint_ == " << fingerprint_; broker_.Register(*this); }
--- a/Platforms/Wasm/Defaults.cpp Wed Sep 11 10:43:21 2019 +0200 +++ b/Platforms/Wasm/Defaults.cpp Wed Sep 11 12:15:21 2019 +0200 @@ -6,7 +6,9 @@ #include <Framework/Deprecated/Viewport/WidgetViewport.h> #include <Applications/Wasm/StartupParametersBuilder.h> #include <Platforms/Wasm/WasmPlatformApplicationAdapter.h> +#include <Framework/StoneInitialization.h> #include <Core/Logging.h> +#include <sstream> #include <algorithm> @@ -105,7 +107,8 @@ } void EMSCRIPTEN_KEEPALIVE CreateWasmApplication(ViewportHandle viewport) { - + printf("Initializing Stone\n"); + OrthancStone::StoneInitialize(); printf("CreateWasmApplication\n"); application.reset(CreateUserApplication(broker));