# HG changeset patch # User Benjamin Golinvaux # Date 1580815882 -3600 # Node ID db759fb1d6e6cf7ff8d82f7147eaac422a00654d # Parent 41d19fa749b70fa13e7a0474e14672dd55552a97 Added debug message if observer invalid diff -r 41d19fa749b7 -r db759fb1d6e6 Framework/Messages/IObserver.cpp --- a/Framework/Messages/IObserver.cpp Tue Feb 04 12:31:03 2020 +0100 +++ b/Framework/Messages/IObserver.cpp Tue Feb 04 12:31:22 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; } }