diff --git a/pEpLog.cc b/pEpLog.cc index cfaa083..08af695 100644 --- a/pEpLog.cc +++ b/pEpLog.cc @@ -27,7 +27,7 @@ bool get_enabled() { void log(std::string msg) { if (is_enabled.load()) { std::lock_guard l(mtx); - #if defined(ANDROID) && !defined(NDEBUG) + #ifdef ANDROID __android_log_print(ANDROID_LOG_DEBUG, "pEpDebugLog", "%s", msg.c_str()); #else std::cout << msg << std::endl; //std::endl also flushes