aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;