fix log android

This commit is contained in:
2022-07-14 18:34:26 +02:00
parent d6fbb58da8
commit ea4349af4c

View File

@@ -11,7 +11,7 @@ namespace utils {
void LOG(const std::string& msg){ void LOG(const std::string& msg){
#ifdef __ANDROID__ #ifdef __ANDROID__
__android_log_print(ANDROID_LOG_INFO, "TRACKERS", "%s", msg); __android_log_print(ANDROID_LOG_INFO, "TRACKERS", "%s", msg.c_str());
#else #else
std::cout << msg << "\n"; std::cout << msg << "\n";
#endif #endif