mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #16704 from alalek:core_log_once_log_if
* core(logger): add CV_LOG_ONCE_xxx() CV_LOG_IF_xxx() macros * core(logger): keep tests disabled
This commit is contained in:
committed by
GitHub
parent
fd09413566
commit
4f288a1e28
@@ -83,8 +83,8 @@ void writeLogMessage(LogLevel logLevel, const char* message)
|
||||
case LOG_LEVEL_INFO: ss << "[ INFO:" << threadID << "] " << message << std::endl; break;
|
||||
case LOG_LEVEL_DEBUG: ss << "[DEBUG:" << threadID << "] " << message << std::endl; break;
|
||||
case LOG_LEVEL_VERBOSE: ss << message << std::endl; break;
|
||||
default:
|
||||
return;
|
||||
case LOG_LEVEL_SILENT: return; // avoid compiler warning about incomplete switch
|
||||
case ENUM_LOG_LEVEL_FORCE_INT: return; // avoid compiler warning about incomplete switch
|
||||
}
|
||||
#ifdef __ANDROID__
|
||||
int android_logLevel = ANDROID_LOG_INFO;
|
||||
|
||||
Reference in New Issue
Block a user