Merge "Add flag to disable CDM logging"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6ba729940f
@@ -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