diff options
author | Roger Dingledine <arma@torproject.org> | 2005-10-17 01:29:28 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-10-17 01:29:28 +0000 |
commit | ae92a91d96f1942a3607292304f02a4947f5202b (patch) | |
tree | 2cbd2ecbd2caaef7b1afab807117bdbe49b565ae /src/or/connection_or.c | |
parent | 03dcef4c78b029f7345c69f7f5d59338198bf2e5 (diff) | |
download | tor-ae92a91d96f1942a3607292304f02a4947f5202b.tar.gz tor-ae92a91d96f1942a3607292304f02a4947f5202b.zip |
more log uncluttering
svn:r5254
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index bf27ff71a1..65217cdc79 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -463,8 +463,7 @@ connection_or_check_valid_handshake(connection_t *conn, char *digest_rcvd) crypto_pk_env_t *identity_rcvd=NULL; char nickname[MAX_NICKNAME_LEN+1]; or_options_t *options = get_options(); - int severity = (authdir_mode(options) || !server_mode(options)) - ? LOG_WARN : LOG_INFO; + int severity = server_mode(options) ? LOG_PROTOCOL_WARN : LOG_WARN; check_no_tls_errors(); if (! tor_tls_peer_has_cert(conn->tls)) { @@ -473,7 +472,7 @@ connection_or_check_valid_handshake(connection_t *conn, char *digest_rcvd) } check_no_tls_errors(); if (tor_tls_get_peer_cert_nickname(conn->tls, nickname, sizeof(nickname))) { - log_fn(LOG_WARN,"Other side (%s:%d) has a cert without a valid nickname. Closing.", + log_fn(severity,"Other side (%s:%d) has a cert without a valid nickname. Closing.", conn->address, conn->port); return -1; } @@ -482,7 +481,7 @@ connection_or_check_valid_handshake(connection_t *conn, char *digest_rcvd) conn->address, conn->port, nickname); if (tor_tls_verify(severity, conn->tls, &identity_rcvd) < 0) { - log_fn(LOG_WARN,"Other side, which claims to be router '%s' (%s:%d), has a cert but it's invalid. Closing.", + log_fn(severity,"Other side, which claims to be router '%s' (%s:%d), has a cert but it's invalid. Closing.", nickname, conn->address, conn->port); return -1; } |