src/pEp_internal.h
changeset 1819 b3e57d741b15
parent 1799 1e46b8759248
child 1853 a86d6290d493
     1.1 --- a/src/pEp_internal.h	Fri Jun 02 18:35:21 2017 +0200
     1.2 +++ b/src/pEp_internal.h	Sat Jun 03 11:08:14 2017 +0200
     1.3 @@ -162,6 +162,7 @@
     1.4      bool passive_mode;
     1.5      bool unencrypted_subject;
     1.6      bool keep_sync_msg;
     1.7 +    bool service_log;
     1.8      
     1.9  #ifdef DEBUG_ERRORSTACK
    1.10      stringlist_t* errorstack;
    1.11 @@ -183,14 +184,14 @@
    1.12  #else
    1.13  #ifdef ANDROID
    1.14  #include <android/log.h>
    1.15 -#define  LOG_MORE(...)  __android_log_print(ANDROID_LOG_DEBUG, "pEpEngine", " %s :: %s :: %s ", __VA_ARGS__);
    1.16 +#define  LOG_MORE(...)  __android_log_print(ANDROID_LOG_DEBUG, "pEpEngine", " %s :: %s :: %s :: %s ", __VA_ARGS__);
    1.17  #else
    1.18  #include <stdio.h>
    1.19 -#define  LOG_MORE(...)  printf("pEpEngine DEBUG_LOG('%s','%s','%s')\n", __VA_ARGS__);
    1.20 +#define  LOG_MORE(...)  fprintf(stderr, "pEpEngine DEBUG_LOG('%s','%s','%s','%s')\n", __VA_ARGS__);
    1.21  #endif
    1.22  #define DEBUG_LOG(TITLE, ENTITY, DESC) {\
    1.23 -    log_event(session, (TITLE), (ENTITY), (DESC), "debug");\
    1.24 -    LOG_MORE((TITLE), (ENTITY), (DESC))\
    1.25 +    log_event(session, (TITLE), (ENTITY), (DESC), "debug " __FILE__ ":" S_LINE);\
    1.26 +    LOG_MORE((TITLE), (ENTITY), (DESC), __FILE__ ":" S_LINE)\
    1.27  }
    1.28  #endif
    1.29