diff options
author | David Goulet <dgoulet@torproject.org> | 2020-03-11 12:12:28 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-08 11:11:58 -0400 |
commit | b049cc3ace18dd42493ca768cf4636dfd89569fc (patch) | |
tree | a70016f891b7025b497637e4bbd9df3a2dd6e6b3 /src/lib/trace/include.am | |
parent | 3604d86a016b6202a5864a81f46addc087658b8c (diff) | |
download | tor-b049cc3ace18dd42493ca768cf4636dfd89569fc.tar.gz tor-b049cc3ace18dd42493ca768cf4636dfd89569fc.zip |
trace: Emit a warning if tracing is built in
Built in tracing should _not_ be run if it was not set on purpose. Warn as
loud as we can in order to inform the user that they are running a version
with tracing capabilities built in.
This commit also adds a subsys stub because utlimately the logging will happen
in the init phase but because the default log file is not set in the
sys_logging init function, the stub is not useful for now.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/lib/trace/include.am')
-rw-r--r-- | src/lib/trace/include.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/trace/include.am b/src/lib/trace/include.am index 8440331325..6fe1365652 100644 --- a/src/lib/trace/include.am +++ b/src/lib/trace/include.am @@ -26,6 +26,10 @@ if USE_TRACING_INSTRUMENTATION_LTTNG include src/lib/trace/lttng/include.am endif +if USE_TRACING src_lib_libtor_trace_a_SOURCES = $(LIBTOR_TRACE_A_SOURCES) +else +src_lib_libtor_trace_a_SOURCES = src/lib/trace/trace_stub.c +endif noinst_HEADERS+= $(TRACEHEADERS) |