From 16778795f334e236e59b6b52e5313b94c817d284 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 7 Oct 2003 21:27:33 +0000 Subject: minor fixes; bump to 0.0.2pre10 svn:r551 --- src/or/config.c | 4 ++-- src/or/onion.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/or/config.c b/src/or/config.c index bf0a59ca74..6c57a39fe2 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -197,7 +197,7 @@ int getconfig(int argc, char **argv, or_options_t *options) { /* 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 @@ int getconfig(int argc, char **argv, or_options_t *options) { 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; diff --git a/src/or/onion.c b/src/or/onion.c index 84d70df406..59149034ed 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -220,7 +220,7 @@ static unsigned int *new_route(double cw, routerinfo_t **rarray, int rarray_len, 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; -- cgit v1.2.3-54-g00ecf