diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-29 22:33:34 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-29 22:33:34 +0000 |
commit | 8308a379086a82126f685f3d8668e48b0453880d (patch) | |
tree | ff58a6840424547da934e4bd85e43d14505c91e7 /src/common/torgzip.c | |
parent | 9027491ae154280094ecf292dc5a8953532363cb (diff) | |
download | tor-8308a379086a82126f685f3d8668e48b0453880d.tar.gz tor-8308a379086a82126f685f3d8668e48b0453880d.zip |
r9023@Kushana: nickm | 2006-09-29 17:27:24 -0400
Make distinct all non-bug messages at notice or higher that appear 3 or more times.
svn:r8541
Diffstat (limited to 'src/common/torgzip.c')
-rw-r--r-- | src/common/torgzip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/torgzip.c b/src/common/torgzip.c index 1d1fdc848d..2ffa47a510 100644 --- a/src/common/torgzip.c +++ b/src/common/torgzip.c @@ -79,7 +79,7 @@ tor_gzip_compress(char **out, size_t *out_len, if (method == GZIP_METHOD && !is_gzip_supported()) { /* Old zlib version don't support gzip in deflateInit2 */ - log_warn(LD_GENERAL, "Gzip not supported with zlib %s", ZLIB_VERSION); + log_warn(LD_BUG, "Gzip not supported with zlib %s", ZLIB_VERSION); return -1; } @@ -132,7 +132,7 @@ tor_gzip_compress(char **out, size_t *out_len, done: *out_len = stream->total_out; if (deflateEnd(stream)!=Z_OK) { - log_warn(LD_GENERAL, "Error freeing gzip structures"); + log_warn(LD_BUG, "Error freeing gzip structures"); goto err; } tor_free(stream); @@ -178,7 +178,7 @@ tor_gzip_uncompress(char **out, size_t *out_len, if (method == GZIP_METHOD && !is_gzip_supported()) { /* Old zlib version don't support gzip in inflateInit2 */ - log_warn(LD_GENERAL, "Gzip not supported with zlib %s", ZLIB_VERSION); + log_warn(LD_BUG, "Gzip not supported with zlib %s", ZLIB_VERSION); return -1; } @@ -213,7 +213,7 @@ tor_gzip_uncompress(char **out, size_t *out_len, goto done; /* There may be more compressed data here. */ if ((r = inflateEnd(stream)) != Z_OK) { - log_warn(LD_GENERAL, "Error freeing gzip structures"); + log_warn(LD_BUG, "Error freeing gzip structures"); goto err; } if (inflateInit2(stream, method_bits(method)) != Z_OK) { @@ -251,7 +251,7 @@ tor_gzip_uncompress(char **out, size_t *out_len, r = inflateEnd(stream); tor_free(stream); if (r != Z_OK) { - log_warn(LD_GENERAL, "Error freeing gzip structures"); + log_warn(LD_BUG, "Error freeing gzip structures"); goto err; } @@ -304,7 +304,7 @@ tor_zlib_new(int compress, compress_method_t method) if (method == GZIP_METHOD && !is_gzip_supported()) { /* Old zlib version don't support gzip in inflateInit2 */ - log_warn(LD_GENERAL, "Gzip not supported with zlib %s", ZLIB_VERSION); + log_warn(LD_BUG, "Gzip not supported with zlib %s", ZLIB_VERSION); return NULL; } |