Repetetive messages can be annoying when running with SYSTEMD_LOG_LEVEL=debug, but they are sometimes very useful when debugging problems. Add log_trace which is like log_debug but becomes a noop unless LOG_TRACE is defined during compilation. This makes it easy to enable very verbose logging for a subset of programs when compiling from source.
cb41ff2 shared/log: add log_trace as compile-time optional debugging
src/journal-remote/journal-remote-parse.c | 6 +++---
src/journal-remote/journal-remote.c | 8 ++++----
src/shared/log.h | 6 ++++++
3 files changed, 13 insertions(+), 7 deletions(-)
Upstream: github.com