...
 
Commits (11)
# 1st Party Dependencies # 1st Party Dependencies
## Prefer git tags instead of SHA hashes when possible. ## Prefer git tags instead of SHA hashes when possible.
pEpEngine=Release_2.1.13 pEpEngine=Release_2.1.22
sequoia=365d00a08bec6a5a48d48a7c7893d78c27092b59 sequoia=365d00a08bec6a5a48d48a7c7893d78c27092b59
...@@ -27,7 +27,7 @@ bool get_enabled() { ...@@ -27,7 +27,7 @@ bool get_enabled() {
void log(std::string msg) { void log(std::string msg) {
if (is_enabled.load()) { if (is_enabled.load()) {
std::lock_guard<std::mutex> l(mtx); 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()); __android_log_print(ANDROID_LOG_DEBUG, "pEpDebugLog", "%s", msg.c_str());
#else #else
std::cout << msg << std::endl; //std::endl also flushes std::cout << msg << std::endl; //std::endl also flushes
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
#include <sstream> #include <sstream>
#include <thread> #include <thread>
#ifdef ANDROID
#include <android/log.h>
#endif
// pEpLog // pEpLog
// ====== // ======
...@@ -31,10 +34,6 @@ ...@@ -31,10 +34,6 @@
#ifdef NDEBUG #ifdef NDEBUG
#define pEpLog(msg) do{}while(0) #define pEpLog(msg) do{}while(0)
#else #else
#ifdef ANDROID
#include <android/log.h>
#endif
#define pEpLog(msg) \ #define pEpLog(msg) \
do { \ do { \
std::stringstream msg_ss; \ std::stringstream msg_ss; \
......