]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Log an HSDesc we failed to parse at Debug loglevel
authorrl1987 <rl1987@sdf.lonestar.org>
Mon, 21 Jan 2019 10:06:46 +0000 (12:06 +0200)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 23 Jan 2019 15:37:10 +0000 (10:37 -0500)
changes/bug29135 [new file with mode: 0644]
src/feature/hs/hs_cache.c

diff --git a/changes/bug29135 b/changes/bug29135
new file mode 100644 (file)
index 0000000..fd7b1ae
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (onion services, logging):
+    - In hs_cache_store_as_client() log an HSDesc we failed to parse at Debug
+      loglevel. Tor used to log it at Warning loglevel, which caused
+      very long log lines to appear for some users. Fixes bug 29135; bugfix on
+      0.3.2.1-alpha.
index 82ce686424ae542e652ce1874f5048e204cbb127..05f9940ae654b32a31082a64842253d1653ba2cc 100644 (file)
@@ -778,8 +778,8 @@ hs_cache_store_as_client(const char *desc_str,
   /* Create client cache descriptor object */
   client_desc = cache_client_desc_new(desc_str, identity_pk);
   if (!client_desc) {
-    log_warn(LD_GENERAL, "Failed to parse received descriptor %s.",
-             escaped(desc_str));
+    log_warn(LD_GENERAL, "HSDesc parsing failed!");
+    log_debug(LD_GENERAL, "Failed to parse HSDesc: %s.", escaped(desc_str));
     goto err;
   }