From f56ba5f3d62cc6a50432466d7202733d909a1ca6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 5 Mar 2008 22:31:39 +0000 Subject: r18630@catbus: nickm | 2008-03-05 17:31:33 -0500 Implement domain-selection for logging. Source is documented; needs documentation in manpage (maybe). For now, see doxygen comment on parse_log_severity_config in log.c svn:r13875 --- src/or/test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/or/test.c') diff --git a/src/or/test.c b/src/or/test.c index 9a2e2fb971..f11c62f6cf 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3634,7 +3634,12 @@ main(int c, char**v) } } - add_stream_log(loglevel, LOG_ERR, "", stdout); + { + log_severity_list_t *s = tor_malloc_zero(sizeof(log_severity_list_t)); + for (i = loglevel; i >= LOG_ERR; --i) + s->masks[SEVERITY_MASK_IDX(i)] = ~0u; + add_stream_log(s, "", stdout); + } options->command = CMD_RUN_UNITTESTS; rep_hist_init(); -- cgit v1.2.3-54-g00ecf