diff options
-rw-r--r-- | src/shared/log.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/log.h b/src/shared/log.h index 70d3ec2f61..30f0cacb65 100644 --- a/src/shared/log.h +++ b/src/shared/log.h @@ -97,6 +97,12 @@ do { \ #define log_warning(...) log_full(LOG_WARNING, __VA_ARGS__) #define log_error(...) log_full(LOG_ERR, __VA_ARGS__) +#ifdef LOG_TRACE +# define log_trace(...) log_debug(__VA_ARGS__) +#else +# define log_trace(...) do {} while(0) +#endif + #define log_struct(level, ...) log_struct_internal(level, __FILE__, __LINE__, __func__, __VA_ARGS__) #define log_oom() log_oom_internal(__FILE__, __LINE__, __func__) |