|
|
@ -27,7 +27,7 @@ bool get_enabled() { |
|
|
|
void log(std::string msg) { |
|
|
|
if (is_enabled.load()) { |
|
|
|
std::lock_guard<std::mutex> 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
|
|
|
|