aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/log.c3
-rw-r--r--src/log.h7
2 files changed, 1 insertions, 9 deletions
diff --git a/src/log.c b/src/log.c
index 6d88ea575..3f05b4d07 100644
--- a/src/log.c
+++ b/src/log.c
@@ -188,10 +188,7 @@ mpd_printf void func(const char *fmt, ...) \
log_func(ERROR, 0, stderr)
log_func(LOG, 0, stdout)
log_func(SECURE, LOG_LEVEL_SECURE, stdout)
-
-#ifndef NDEBUG
log_func(DEBUG, LOG_LEVEL_DEBUG, stdout)
-#endif /* NDEBUG */
#undef log_func
diff --git a/src/log.h b/src/log.h
index 0fb69ac7a..e0adf80fa 100644
--- a/src/log.h
+++ b/src/log.h
@@ -29,15 +29,10 @@
#define LOG_LEVEL_SECURE 1
#define LOG_LEVEL_DEBUG 2
-#ifndef NDEBUG
- mpd_printf void DEBUG(const char *fmt, ...);
-#else
- static inline void DEBUG(const char *fmt, ...) { }
-#endif
-
mpd_printf void ERROR(const char *fmt, ...);
mpd_printf void LOG(const char *fmt, ...);
mpd_printf void SECURE(const char *fmt, ...);
+mpd_printf void DEBUG(const char *fmt, ...);
mpd_printf void WARNING(const char *fmt, ...);
mpd_printf void FATAL(const char *fmt, ...);