diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-04 21:26:23 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-04 21:26:23 +0000 |
commit | 01e06148a126b92be1f8d09f83c3b065f6927a46 (patch) | |
tree | df014440bb6d9458bf7f1ac50f3438613c192f4f /src | |
parent | 8fe504fee63125082efa34e3790e88bde5b81f01 (diff) | |
download | tor-01e06148a126b92be1f8d09f83c3b065f6927a46.tar tor-01e06148a126b92be1f8d09f83c3b065f6927a46.tar.gz |
make workers explain their death better when tor dies
and make them say it at log level info rather than err
svn:r1232
Diffstat (limited to 'src')
-rw-r--r-- | src/or/cpuworker.c | 3 | ||||
-rw-r--r-- | src/or/dns.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index e3395e0b1..2e80f72d4 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -133,7 +133,8 @@ int cpuworker_main(void *data) { for(;;) { if(read(fd, &question_type, 1) != 1) { - log_fn(LOG_ERR,"read type failed. Exiting."); +// log_fn(LOG_ERR,"read type failed. Exiting."); + log_fn(LOG_INFO,"cpuworker exiting because tor process died."); spawn_exit(); } assert(question_type == CPUWORKER_TASK_ONION); diff --git a/src/or/dns.c b/src/or/dns.c index 6fcacfc95..4eed20d6e 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -398,7 +398,8 @@ int dnsworker_main(void *data) { for(;;) { if(read(fd, &address_len, 1) != 1) { - log_fn(LOG_INFO,"read length failed. Child exiting."); +// log_fn(LOG_INFO,"read length failed. Child exiting."); + log_fn(LOG_INFO,"dnsworker exiting because tor process died."); spawn_exit(); } assert(address_len > 0); |