diff Framework/Messages/IObserver.cpp @ 1293:f050391249f0

Merged changes from bugfix branch
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 21 Feb 2020 15:27:42 +0100
parents db759fb1d6e6
children
line wrap: on
line diff
--- a/Framework/Messages/IObserver.cpp	Tue Feb 11 14:40:33 2020 +0100
+++ b/Framework/Messages/IObserver.cpp	Fri Feb 21 15:27:42 2020 +0100
@@ -82,8 +82,13 @@
 
   bool IObserver::DoesFingerprintLookGood() const
   {
-    return (fingerprint_[0] >= IObserver_FIRST_UNIQUE_ID) &&
+    bool ok = (fingerprint_[0] >= IObserver_FIRST_UNIQUE_ID) &&
       (fingerprint_[1] == fingerprint_[0] / 2) &&
       (fingerprint_[2] == fingerprint_[1] + IObserver_UNIQUE_ID_MAGIC_NUMBER);
+    if(!ok) 
+    {
+      LOG(INFO) << "Fingerprint not valid: " << " fingerprint_[0] = " << fingerprint_[0] << " fingerprint_[1] = " << fingerprint_[1]<< " fingerprint_[2] = " << fingerprint_[2];
+    }
+    return ok;
   }
 }