summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-20 11:49:54 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-20 12:08:11 -0400
commitd8cd68caf1edb24b9daff2eb58f2b5f517b02c52 (patch)
tree15525e09b9f8d06f8eaece6e51849507f79855c3 /src/or/directory.c
parent7b3161f0082a626c721acc1100cce0acb40efa85 (diff)
downloadtor-d8cd68caf1edb24b9daff2eb58f2b5f517b02c52.tar.gz
tor-d8cd68caf1edb24b9daff2eb58f2b5f517b02c52.zip
If a _guessed_ compression method fails, it is never PROTOCOL_WARN.
Rationale: When use a guessed compression method, we already gave a PROTOCOL_WARN when our guess differed from the declared method, AND we gave a PROTOCOL_WARN when the declared method failed. It is not a protocol problem that the guessed method failed too; it's just a recovery attempt that failed.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 1d2f8986aa..b6121d80d8 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2271,7 +2271,7 @@ dir_client_decompress_response_body(char **bodyp, size_t *bodylenp,
if (!new_body && tor_compress_supports_method(guessed) &&
compression != guessed) {
tor_uncompress(&new_body, &new_len, body, body_len, guessed,
- !allow_partial, LOG_PROTOCOL_WARN);
+ !allow_partial, LOG_INFO);
tried_both = 1;
}
/* If we're pretty sure that we have a compressed directory, and