From 2645219b4c2140b434fc3710f108ab6993afbfed Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 1 Nov 2007 04:38:43 +0000 Subject: r16322@catbus: nickm | 2007-11-01 00:26:15 -0400 Implement --quiet. svn:r12306 --- src/or/main.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index 08b5e805eb..ea09bf524d 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1718,6 +1718,7 @@ handle_signals(int is_parent) tor_init(int argc, char *argv[]) { char buf[256]; + int i, quiet = 0; time_of_process_start = time(NULL); if (!connection_array) connection_array = smartlist_create(); @@ -1737,8 +1738,16 @@ tor_init(int argc, char *argv[]) addressmap_init(); /* Init the client dns cache. Do it always, since it's * cheap. */ - /* give it somewhere to log to initially */ - add_temp_log(); + /* We search for the "quiet" option first, since it decides whether we + * will log anything at all to the command line. */ + for (i=1;i