X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.h;h=7692ebdb0377eb3212a4c3a2da9931c837202d46;hb=939a113b288dfdee7df2263c682d27d7146c6013;hp=4ca6c771f16c8d87f050c499b4f367cf85b6b970;hpb=dd13e59199e95dfa5421ca33907c0cccc75e550c;p=collectd.git diff --git a/src/plugin.h b/src/plugin.h index 4ca6c771..7692ebdb 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -193,7 +193,11 @@ void plugin_log (int level, const char *format, ...); #define WARNING(...) plugin_log (LOG_WARNING, __VA_ARGS__) #define NOTICE(...) plugin_log (LOG_NOTICE, __VA_ARGS__) #define INFO(...) plugin_log (LOG_INFO, __VA_ARGS__) -#define DEBUG(...) plugin_log (LOG_DEBUG, __VA_ARGS__) +#if COLLECT_DEBUG +# define DEBUG(...) plugin_log (LOG_DEBUG, __VA_ARGS__) +#else /* COLLECT_DEBUG */ +# define DEBUG(...) /* noop */ +#endif /* ! COLLECT_DEBUG */ /* TODO: Move plugin_{complain,relief} into `utils_complain.[ch]'. -octo */ void plugin_complain (int level, complain_t *c, const char *format, ...);