summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-03-05 22:31:39 +0000
committerNick Mathewson <nickm@torproject.org>2008-03-05 22:31:39 +0000
commitf56ba5f3d62cc6a50432466d7202733d909a1ca6 (patch)
tree9357d7b1860a492c10d435f6ab8c4208aa618e64 /src/or/test.c
parentd3589553bc7b091538ee93bd86867232b50b0f78 (diff)
downloadtor-f56ba5f3d62cc6a50432466d7202733d909a1ca6.tar.gz
tor-f56ba5f3d62cc6a50432466d7202733d909a1ca6.zip
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
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c7
1 files changed, 6 insertions, 1 deletions
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();