Disable LOG_DEBUG when debugging isn't enabled
This commit is contained in:
parent
820f28d4b1
commit
c81919dbe7
4
log.hpp
4
log.hpp
@ -64,7 +64,11 @@ namespace util {
|
||||
#define LOG_WARN(...) do { log(util::WARN, ##__VA_ARGS__); } while (0)
|
||||
#define LOG_NOTICE(...) do { log(util::NOTICE, ##__VA_ARGS__); } while (0)
|
||||
#define LOG_INFO(...) do { log(util::INFO, ##__VA_ARGS__); } while (0)
|
||||
#if defined(ENABLE_DEBUGGING)
|
||||
#define LOG_DEBUG(...) do { log(util::DEBUG, ##__VA_ARGS__); } while (0)
|
||||
#else
|
||||
#define LOG_DEBUG(...) do { ; } while (0)
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "log.ipp"
|
||||
|
Loading…
Reference in New Issue
Block a user