[or-cvs] add missing warning

Nick Mathewson nickm at seul.org
Wed Jan 11 20:09:39 UTC 2006


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv26193/src/or

Modified Files:
	config.c 
Log Message:
add missing warning

Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.491
retrieving revision 1.492
diff -u -p -d -r1.491 -r1.492
--- config.c	11 Jan 2006 20:01:47 -0000	1.491
+++ config.c	11 Jan 2006 20:09:37 -0000	1.492
@@ -2764,8 +2764,10 @@ options_init_logs(or_options_t *options,
         ok = 0; goto cleanup;
       }
       if (!validate_only) {
-        if (add_file_log(levelMin, levelMax, smartlist_get(elts, 2)) < 0)
+        if (add_file_log(levelMin, levelMax, smartlist_get(elts, 2)) < 0) {
+          warn(LD_CONFIG, "Couldn't open file for 'Log %s'", opt->value);
           ok = 0;
+        }
       }
       goto cleanup;
     }



More information about the tor-commits mailing list