Commit df50886d authored by Tristan Matthews's avatar Tristan Matthews

* #9832: logger: don't hide logging if NDEBUG is present

parent 7acf501f
......@@ -41,12 +41,8 @@ void setDebugMode(bool);
bool getDebugMode();
};
#ifdef NDEBUG
#define LOGGER(M, LEVEL, ...)
#else
#define LOGGER(M, LEVEL, ...) Logger::log(LEVEL, "%s:%d: " M, __FILE__, \
__LINE__, ##__VA_ARGS__)
#endif
#define ERROR(M, ...) LOGGER(M, LOG_ERR, ##__VA_ARGS__)
#define WARN(M, ...) LOGGER(M, LOG_WARNING, ##__VA_ARGS__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment