[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r13028: add init_logging calls to tor_gencert and tor_resolve (in tor/trunk: . src/tools)



Author: nickm
Date: 2008-01-03 17:44:32 -0500 (Thu, 03 Jan 2008)
New Revision: 13028

Modified:
   tor/trunk/
   tor/trunk/src/tools/tor-gencert.c
   tor/trunk/src/tools/tor-resolve.c
Log:
 r17459@catbus:  nickm | 2008-01-03 17:44:25 -0500
 add init_logging calls to tor_gencert and tor_resolve



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r17459] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/tools/tor-gencert.c
===================================================================
--- tor/trunk/src/tools/tor-gencert.c	2008-01-03 17:56:26 UTC (rev 13027)
+++ tor/trunk/src/tools/tor-gencert.c	2008-01-03 22:44:32 UTC (rev 13028)
@@ -392,6 +392,8 @@
 main(int argc, char **argv)
 {
   int r = 1;
+  init_logging();
+
   /* Don't bother using acceleration. */
   if (crypto_global_init(0)) {
     fprintf(stderr, "Couldn't initialize crypto library.\n");

Modified: tor/trunk/src/tools/tor-resolve.c
===================================================================
--- tor/trunk/src/tools/tor-resolve.c	2008-01-03 17:56:26 UTC (rev 13027)
+++ tor/trunk/src/tools/tor-resolve.c	2008-01-03 22:44:32 UTC (rev 13028)
@@ -278,6 +278,8 @@
   char *result_hostname = NULL;
   char buf[INET_NTOA_BUF_LEN];
 
+  init_logging();
+
   arg = &argv[1];
   n_args = argc-1;