aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2021-03-02 00:15:03 +0100
committerKenny Levinsen <kl@kl.wtf>2021-03-02 00:27:38 +0100
commitd8ddf590faf49dec01453adc6ea238d94ba84478 (patch)
tree59f79d47907d5f17c83c1b62dd02a9c9419c8a13
parente4c28227ec1de65ee6ce5bb52412a2a2cf4c0628 (diff)
log: Include debug logs in release builds
-rw-r--r--include/log.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/log.h b/include/log.h
index f5f423e..4cf5af3 100644
--- a/include/log.h
+++ b/include/log.h
@@ -27,15 +27,10 @@
#define log_error(str) _logf(LIBSEAT_LOG_LEVEL_ERROR, "[%s:%d] %s", __FILENAME__, __LINE__, str)
-#ifdef DEBUG
#define log_debugf(fmt, ...) \
_logf(LIBSEAT_LOG_LEVEL_DEBUG, "[%s:%d] " fmt, __FILENAME__, __LINE__, __VA_ARGS__)
#define log_debug(str) _logf(LIBSEAT_LOG_LEVEL_DEBUG, "[%s:%d] %s", __FILENAME__, __LINE__, str)
-#else
-#define log_debugf(fmt, ...)
-#define log_debug(str)
-#endif
void log_init(void);
void _logf(enum libseat_log_level level, const char *fmt, ...) ATTRIB_PRINTF(2, 3);