summaryrefslogtreecommitdiffstats
path: root/src/basic/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/log.h')
-rw-r--r--src/basic/log.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/basic/log.h b/src/basic/log.h
index 1e2bec1646..0d927bfce9 100644
--- a/src/basic/log.h
+++ b/src/basic/log.h
@@ -273,9 +273,11 @@ int log_emergency_level(void);
})
#if LOG_TRACE
-# define log_trace(...) log_debug(__VA_ARGS__)
+# define log_trace(...) log_debug(__VA_ARGS__)
+# define log_trace_errno(...) log_debug_errno(__VA_ARGS__)
#else
-# define log_trace(...) do {} while (0)
+# define log_trace(...) do {} while (0)
+# define log_trace_errno(e, ...) (-ERRNO_VALUE(e))
#endif
/* Structured logging */