diff options
author | Roger Dingledine <arma@torproject.org> | 2005-05-03 10:04:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-05-03 10:04:08 +0000 |
commit | 5265bbd2b8f4a28f26eabb48a4d167b765780b26 (patch) | |
tree | 9e3ee23068a617dc137f0fa203adb8b21c8a8c30 /src/or/relay.c | |
parent | b35f7dacef6b5e4215dfba9a4088a73421fb103c (diff) | |
download | tor-5265bbd2b8f4a28f26eabb48a4d167b765780b26.tar.gz tor-5265bbd2b8f4a28f26eabb48a4d167b765780b26.zip |
first iteration of scrubbing sensitive strings from logs.
also generally clean up log messages.
svn:r4174
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index cd237e020a..631c1ccf49 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -607,7 +607,7 @@ connection_edge_process_end_not_open( return -1; } log_fn(LOG_INFO,"Address '%s' refused due to '%s'. Considering retrying.", - conn->socks_request->address, + safe_str(conn->socks_request->address), connection_edge_end_reason_str(reason)); exitrouter = router_get_by_digest(circ->build_state->chosen_exit_digest); if (!exitrouter) { @@ -620,7 +620,7 @@ connection_edge_process_end_not_open( uint32_t addr = ntohl(get_uint32(cell->payload+RELAY_HEADER_SIZE+1)); if (!addr) { log_fn(LOG_INFO,"Address '%s' resolved to 0.0.0.0. Closing,", - conn->socks_request->address); + safe_str(conn->socks_request->address)); connection_mark_unattached_ap(conn, END_STREAM_REASON_TORPROTOCOL); return 0; } @@ -654,7 +654,7 @@ connection_edge_process_end_not_open( /* else, conn will get closed below */ } else { log_fn(LOG_NOTICE,"Have tried resolving address '%s' at %d different places. Giving up.", - conn->socks_request->address, MAX_RESOLVE_FAILURES); + safe_str(conn->socks_request->address), MAX_RESOLVE_FAILURES); } break; case END_STREAM_REASON_HIBERNATING: |