[or-cvs] minor fixes; bump to 0.0.2pre10

Roger Dingledine arma at seul.org
Tue Oct 7 21:27:36 UTC 2003


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	config.c onion.c 
Log Message:
minor fixes; bump to 0.0.2pre10


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- config.c	4 Oct 2003 03:29:09 -0000	1.51
+++ config.c	7 Oct 2003 21:27:33 -0000	1.52
@@ -197,7 +197,7 @@
 
 /* give reasonable values for each option. Defaults to zero. */
   memset(options,0,sizeof(or_options_t));
-  options->LogLevel = "debug";
+  options->LogLevel = "info";
   options->loglevel = LOG_DEBUG;
   options->DataDirectory = NULL;
   options->CoinWeight = 0.1;
@@ -243,7 +243,7 @@
   if(options->LogLevel) {
     if(!strcmp(options->LogLevel,"err"))
       options->loglevel = LOG_ERR;
-    else if(!strcmp(options->LogLevel,"warning"))
+    else if(!strncmp(options->LogLevel,"warn",4))
       options->loglevel = LOG_WARNING;
     else if(!strcmp(options->LogLevel,"info"))
       options->loglevel = LOG_INFO;

Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- onion.c	4 Oct 2003 02:38:17 -0000	1.70
+++ onion.c	7 Oct 2003 21:27:33 -0000	1.71
@@ -220,7 +220,7 @@
  
   oldchoice = rarray_len;
   for(i=0;i<*routelen;i++) {
-    log_fn(LOG_DEBUG,"Choosing hop %u.",i);
+//    log_fn(LOG_DEBUG,"Choosing hop %u.",i);
     if (CRYPTO_PSEUDO_RAND_INT(choice)) {
       free((void *)route);
       return NULL;



More information about the tor-commits mailing list