aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-02-12 23:44:02 +0000
committerRoger Dingledine <arma@torproject.org>2006-02-12 23:44:02 +0000
commitb99f903e34b1d2b4548937480d2345ab4753454f (patch)
treeed002b0bea9e40145b7344c7799ff948567800c9 /src/or/directory.c
parent53c54b75c9e3ba373cc43633eacc290f175fbb14 (diff)
downloadtor-b99f903e34b1d2b4548937480d2345ab4753454f.tar
tor-b99f903e34b1d2b4548937480d2345ab4753454f.tar.gz
and don't warn when it happens here either, unless the user
wants to hear it. svn:r5990
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index f9c10b7b7..d9a73e5d3 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -945,18 +945,18 @@ connection_dir_client_reached_eof(connection_t *conn)
/* Try declared compression first if we can. */
if (compression > 0)
tor_gzip_uncompress(&new_body, &new_len, body, body_len, compression,
- allow_partial);
+ allow_partial, LOG_PROTOCOL_WARN);
/* Okay, if that didn't work, and we think that it was compressed
* differently, try that. */
if (!new_body && guessed > 0 && compression != guessed)
tor_gzip_uncompress(&new_body, &new_len, body, body_len, guessed,
- allow_partial);
+ allow_partial, LOG_PROTOCOL_WARN);
/* If we're pretty sure that we have a compressed directory, and
* we didn't manage to uncompress it, then warn and bail. */
if (!plausible && !new_body) {
- log(LOG_PROTOCOL_WARN, LD_HTTP,
- "Unable to decompress HTTP body (server '%s:%d').",
- conn->address, conn->port);
+ log_fn(LOG_PROTOCOL_WARN, LD_HTTP,
+ "Unable to decompress HTTP body (server '%s:%d').",
+ conn->address, conn->port);
tor_free(body); tor_free(headers); tor_free(reason);
return -1;
}