add log for android to be able to see what is happening while syncing on "realtime"

doc_update_sequoia
Hussein Kasem 6 years ago
parent 92ddf29324
commit 8201594073

@ -768,6 +768,12 @@ DYNAMIC_API PEP_STATUS log_event(
assert(title);
assert(entity);
#ifndef NDEBUG
#ifdef ANDROID
LOGD(" %s :: %s :: %s ", title, entity, description);
#endif
#endif
if (!(session && title && entity))
return PEP_ILLEGAL_VALUE;

@ -166,9 +166,16 @@ void release_transport_system(PEP_SESSION session, bool out_last);
#ifdef NDEBUG
#define DEBUG_LOG(TITLE, ENTITY, DESC)
#define LOGD(...)
#else
#define DEBUG_LOG(TITLE, ENTITY, DESC) \
log_event(session, (TITLE), (ENTITY), (DESC), "debug");
#ifdef ANDROID
#include <android/log.h>
#define LOG_TAG "pEpEngine"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
#endif
#endif
// Space tolerant and case insensitive fingerprint string compare

Loading…
Cancel
Save