comparison Framework/Messages/IObserver.h @ 991:92a043b8e431

removed logs from IObserver constructor
author Alain Mazy <alain@mazy.be>
date Wed, 11 Sep 2019 12:15:21 +0200
parents 262a0244e9b2
children f6be9412e42a
comparison
equal deleted inserted replaced
990:3ea70a62ca00 991:92a043b8e431
43 // we store the fingerprint_ as a char array to avoid problems when 43 // we store the fingerprint_ as a char array to avoid problems when
44 // reading it in a deceased object. 44 // reading it in a deceased object.
45 // remember this is panic-level code to track zombie object usage 45 // remember this is panic-level code to track zombie object usage
46 std::string fingerprint = Orthanc::Toolbox::GenerateUuid(); 46 std::string fingerprint = Orthanc::Toolbox::GenerateUuid();
47 const char* fingerprintRaw = fingerprint.c_str(); 47 const char* fingerprintRaw = fingerprint.c_str();
48 ORTHANC_ASSERT(strlen(fingerprintRaw) == 36);
49 ORTHANC_ASSERT(fingerprintRaw[36] == 0);
50 memcpy(fingerprint_, fingerprintRaw, 37); 48 memcpy(fingerprint_, fingerprintRaw, 37);
51 LOG(TRACE) << "IObserver(" << std::hex << this << std::dec << ")::IObserver : fingerprint_ == " << fingerprint_;
52 broker_.Register(*this); 49 broker_.Register(*this);
53 } 50 }
54 51
55 virtual ~IObserver() 52 virtual ~IObserver()
56 { 53 {