|
|
|
@ -162,6 +162,7 @@ struct _pEpSession {
|
|
|
|
|
bool passive_mode;
|
|
|
|
|
bool unencrypted_subject;
|
|
|
|
|
bool keep_sync_msg;
|
|
|
|
|
bool service_log;
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG_ERRORSTACK
|
|
|
|
|
stringlist_t* errorstack;
|
|
|
|
@ -183,14 +184,14 @@ PEP_STATUS encrypt_only(
|
|
|
|
|
#else
|
|
|
|
|
#ifdef ANDROID
|
|
|
|
|
#include <android/log.h>
|
|
|
|
|
#define LOG_MORE(...) __android_log_print(ANDROID_LOG_DEBUG, "pEpEngine", " %s :: %s :: %s ", __VA_ARGS__);
|
|
|
|
|
#define LOG_MORE(...) __android_log_print(ANDROID_LOG_DEBUG, "pEpEngine", " %s :: %s :: %s :: %s ", __VA_ARGS__);
|
|
|
|
|
#else
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#define LOG_MORE(...) printf("pEpEngine DEBUG_LOG('%s','%s','%s')\n", __VA_ARGS__);
|
|
|
|
|
#define LOG_MORE(...) fprintf(stderr, "pEpEngine DEBUG_LOG('%s','%s','%s','%s')\n", __VA_ARGS__);
|
|
|
|
|
#endif
|
|
|
|
|
#define DEBUG_LOG(TITLE, ENTITY, DESC) {\
|
|
|
|
|
log_event(session, (TITLE), (ENTITY), (DESC), "debug");\
|
|
|
|
|
LOG_MORE((TITLE), (ENTITY), (DESC))\
|
|
|
|
|
log_event(session, (TITLE), (ENTITY), (DESC), "debug " __FILE__ ":" S_LINE);\
|
|
|
|
|
LOG_MORE((TITLE), (ENTITY), (DESC), __FILE__ ":" S_LINE)\
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|