aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'log.h')
-rw-r--r--log.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/log.h b/log.h
index 7d41fbc..a0c5beb 100644
--- a/log.h
+++ b/log.h
@@ -35,8 +35,18 @@ void g_log(enum log_level level,
#define LOGIV(X, ...) g_log(log_info, __FUNCTION__, __LINE__, X, __VA_ARGS__)
+#ifdef DEBUG_LOGS
+
#define LOGD(X) g_log(log_debug, __FUNCTION__, __LINE__, X)
#define LOGDV(X, ...) g_log(log_debug, __FUNCTION__, __LINE__, X, __VA_ARGS__)
+#else
+
+#define LOGD(X) (1)
+
+#define LOGDV(X, ...) (1)
+
+#endif
+
#endif /* LOG_H */