GEODE-8994: Fix log line in EventId ctor (#756)
- memId isn't a string, need to convert it first or we'll log garbage.
diff --git a/cppcache/src/EventId.cpp b/cppcache/src/EventId.cpp
index 62c0539..d53090a 100644
--- a/cppcache/src/EventId.cpp
+++ b/cppcache/src/EventId.cpp
@@ -23,6 +23,7 @@
#include <geode/DataInput.hpp>
#include "ClientProxyMembershipID.hpp"
+#include "Utils.hpp"
#include "util/Log.hpp"
namespace apache {
@@ -137,7 +138,8 @@
EventId::EventId(char* memId, uint32_t memIdLen, int64_t thr, int64_t seq) {
LOGDEBUG("EventId::EventId(%p) - memId=%s, memIdLen=%d, thr=%" PRId64
", seq=%" PRId64,
- this, memId, memIdLen, thr, seq);
+ this, Utils::convertBytesToString(memId, memIdLen).c_str(), memIdLen,
+ thr, seq);
// TODO: statics being assigned; not thread-safe??
std::memcpy(clientId_, memId, memIdLen);
clientIdLength_ = memIdLen;