fixing log
This commit is contained in:
@@ -2,14 +2,11 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
#define LOGD LOG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
namespace utils {
|
namespace utils {
|
||||||
|
|
||||||
void LOG(const std::string& msg);
|
void LOG(const std::string& msg);
|
||||||
|
void LOGD(const std::string& msg);
|
||||||
void LOGE(const std::string& err);
|
void LOGE(const std::string& err);
|
||||||
|
|
||||||
} // namespace utils
|
} // namespace utils
|
||||||
|
|||||||
@@ -17,6 +17,12 @@ void LOG(const std::string& msg) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LOGD(const std::string& msg) {
|
||||||
|
#if !defined(NDEBUG)
|
||||||
|
LOG(msg);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void LOGE(const std::string& err) {
|
void LOGE(const std::string& err) {
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
__android_log_print(ANDROID_LOG_ERROR, "TRACKERS", "%s", err.c_str());
|
__android_log_print(ANDROID_LOG_ERROR, "TRACKERS", "%s", err.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user