Add Android debug logging android-stuff
authorHussein Kasem
Wed, 13 Nov 2019 16:22:35 +0100
branchandroid-stuff
changeset 4163c5f036b34b4d
parent 4162 0312cc9beb44
Add Android debug logging
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Wed Nov 13 15:26:49 2019 +0100
     1.2 +++ b/src/pEpEngine.c	Wed Nov 13 16:22:35 2019 +0100
     1.3 @@ -2170,6 +2170,11 @@
     1.4  	log_output_debug(title, entity, description, comment);
     1.5  #endif
     1.6  
     1.7 +#if defined(ANDROID) && !defined(NDEBUG)
     1.8 +    __android_log_print(ANDROID_LOG_DEBUG, "pEpEngine", " %s :: %s :: %s :: %s ",
     1.9 +            title, entity, description, comment);
    1.10 +#endif
    1.11 +
    1.12  // N.B. If testing (so NDEBUG not defined) but this message is spam,
    1.13  //      put -D_PEP_SERVICE_LOG_OFF into CFLAGS/CXXFLAGS     
    1.14  #if !defined(NDEBUG) && !defined(_PEP_SERVICE_LOG_OFF)