aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-07 21:27:33 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-07 21:27:33 +0000
commit16778795f334e236e59b6b52e5313b94c817d284 (patch)
treeb8bebd9efd62cdda9f62bbe1c22d834c2210f242 /src
parent3d7463d2b3183b3eb656271a75c14e34d771b3f9 (diff)
downloadtor-16778795f334e236e59b6b52e5313b94c817d284.tar.gz
tor-16778795f334e236e59b6b52e5313b94c817d284.zip
minor fixes; bump to 0.0.2pre10
svn:r551
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c4
-rw-r--r--src/or/onion.c2
2 files changed, 3 insertions, 3 deletions
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;