]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Suppress "decided to publish new descriptor" message when not a server
authorNick Mathewson <nickm@torproject.org>
Mon, 2 Apr 2012 22:54:16 +0000 (18:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 2 Apr 2012 22:59:21 +0000 (18:59 -0400)
The message only means that we're publishing a new descriptor when we
are actually in some kind of server mode, and publication is on.

Fix for bug 3942; bugfix on 0.2.3.2-alpha.

changes/bug3942 [new file with mode: 0644]
src/or/router.c

diff --git a/changes/bug3942 b/changes/bug3942
new file mode 100644 (file)
index 0000000..f69c7bc
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Don't log that we have "decided to publish new relay descriptor" unless
+      we are actually publishing a descriptor. Fix for bug 3942; bugfix on
+      0.2.3.2-alpha.
index bf15689a159f18e9288106f568c3221811edb4f1..eb201f4bc9f352d618f4b215add7744eb5456121 100644 (file)
@@ -1738,8 +1738,10 @@ mark_my_descriptor_dirty_if_too_old(time_t now)
 void
 mark_my_descriptor_dirty(const char *reason)
 {
+  const or_options_t *options = get_options();
+  if (server_mode(options) && options->_PublishServerDescriptor)
+    log_info(LD_OR, "Decided to publish new relay descriptor: %s", reason);
   desc_clean_since = 0;
-  log_info(LD_OR, "Decided to publish new relay descriptor: %s", reason);
   if (!desc_dirty_reason)
     desc_dirty_reason = reason;
 }