Add flag to disable CDM logging
[ Merge of http://go/wvgerrit/151570 ] Bug: 215590138 Bug: 236317198 Change-Id: I5e90d2813252ca5ff5d9ba62316e2ee5545c71bf
This commit is contained in:
@@ -91,6 +91,13 @@ CORE_UTIL_EXPORT void Log(const char* file, const char* function, int line,
|
||||
#endif
|
||||
|
||||
// Log APIs
|
||||
#ifdef CDM_DISABLE_LOGGING
|
||||
# define LOGE(...) (void)0
|
||||
# define LOGW(...) (void)0
|
||||
# define LOGI(...) (void)0
|
||||
# define LOGD(...) (void)0
|
||||
# define LOGV(...) (void)0
|
||||
#else
|
||||
# ifndef LOGE
|
||||
# define LOGE(...) \
|
||||
Log(__FILE__, __func__, __LINE__, wvutil::CDM_LOG_ERROR, __VA_ARGS__)
|
||||
@@ -103,6 +110,7 @@ CORE_UTIL_EXPORT void Log(const char* file, const char* function, int line,
|
||||
# define LOGV(...) \
|
||||
Log(__FILE__, __func__, __LINE__, wvutil::CDM_LOG_VERBOSE, __VA_ARGS__)
|
||||
# endif
|
||||
#endif
|
||||
} // namespace wvutil
|
||||
|
||||
#endif // WVCDM_UTIL_LOG_H_
|
||||
|
||||
Reference in New Issue
Block a user