]> git.ipfire.org Git - collecty.git/commitdiff
logging: Always compile in debug logging
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Sep 2025 12:54:43 +0000 (12:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Sep 2025 12:54:43 +0000 (12:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/logging.h

index 0b9c0578ee4b68c74f4577f5a14d4d541301ebb6..293d50f60ced6c13a6f4188de1de34aa5df411f1 100644 (file)
@@ -45,15 +45,6 @@ void collecty_log_syslog(void* data, int priority, const char* file,
 #define INFO(ctx, arg...) collecty_ctx_log_condition(ctx, LOG_INFO, ## arg)
 #define WARN(ctx, arg...) collecty_ctx_log_condition(ctx, LOG_WARNING, ## arg)
 #define ERROR(ctx, arg...) collecty_ctx_log_condition(ctx, LOG_ERR, ## arg)
-
-// This function does absolutely nothing
-static inline void __attribute__((always_inline, format(printf, 2, 3)))
-       collecty_ctx_log_null(collecty_ctx* ctx, const char *format, ...) {}
-
-#ifdef ENABLE_DEBUG
-#      define DEBUG(ctx, arg...) collecty_ctx_log_condition(ctx, LOG_DEBUG, ## arg)
-#else
-#      define DEBUG collecty_ctx_log_null
-#endif
+#define DEBUG(ctx, arg...) collecty_ctx_log_condition(ctx, LOG_DEBUG, ## arg)
 
 #endif /* COLLECTY_LOGGING_H */