diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-10 23:30:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-10 23:34:43 -0400 |
commit | 93dfb1203715bd275d0eed6c8cccf6b6db76fd95 (patch) | |
tree | c6da409f3293b602cbc2c0c54feeba694402fa9a /src/tools | |
parent | 6e2ef4bc5ef882b3434d2fe15c1007b4ac711374 (diff) | |
download | tor-93dfb1203715bd275d0eed6c8cccf6b6db76fd95.tar.gz tor-93dfb1203715bd275d0eed6c8cccf6b6db76fd95.zip |
Remember log messages that happen before logs are configured
(And replay them once we know our first real logs.)
This is an implementation for issue 6938. It solves the problem of
early log mesages not getting sent to log files, but not the issue of
early log messages not getting sent to controllers.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tor-checkkey.c | 2 | ||||
-rw-r--r-- | src/tools/tor-gencert.c | 2 | ||||
-rw-r--r-- | src/tools/tor-resolve.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/tor-checkkey.c b/src/tools/tor-checkkey.c index d50f12ed2a..295da33051 100644 --- a/src/tools/tor-checkkey.c +++ b/src/tools/tor-checkkey.c @@ -21,7 +21,7 @@ main(int c, char **v) int wantdigest=0; int fname_idx; char *fname=NULL; - init_logging(); + init_logging(1); if (c < 2) { fprintf(stderr, "Hi. I'm tor-checkkey. Tell me a filename that " diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c index fae26ef956..0fe6821ff8 100644 --- a/src/tools/tor-gencert.c +++ b/src/tools/tor-gencert.c @@ -525,7 +525,7 @@ int main(int argc, char **argv) { int r = 1; - init_logging(); + init_logging(1); /* Don't bother using acceleration. */ if (crypto_global_init(0, NULL, NULL)) { diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 306f6c66ab..1b1e6745cb 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -343,7 +343,7 @@ main(int argc, char **argv) char *result_hostname = NULL; log_severity_list_t *s = tor_malloc_zero(sizeof(log_severity_list_t)); - init_logging(); + init_logging(1); arg = &argv[1]; n_args = argc-1; |