chiark / gitweb /
shared/log: add log_trace as compile-time optional debugging
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Oct 2014 04:27:57 +0000 (23:27 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Oct 2014 04:27:57 +0000 (00:27 -0400)
commitcb41ff2922b8a555c01d52e1038ac26360253c15
tree5c8497de2074012d900cb22e6d957e0d14560907
parent8847551bcbfa8265bae04f567bb1aadc7b480325
shared/log: add log_trace as compile-time optional debugging

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.
src/journal-remote/journal-remote-parse.c
src/journal-remote/journal-remote.c
src/shared/log.h