]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Downgrade 'Got a certificate, but we already have it' log message from warning to...
authorAndrea Shepard <andrea@persephoneslair.org>
Thu, 28 Jun 2012 07:21:06 +0000 (00:21 -0700)
committerNick Mathewson <nickm@torproject.org>
Thu, 28 Jun 2012 14:42:43 +0000 (10:42 -0400)
changes/bug5238 [new file with mode: 0644]
src/or/routerlist.c

diff --git a/changes/bug5238 b/changes/bug5238
new file mode 100644 (file)
index 0000000..2f18707
--- /dev/null
@@ -0,0 +1,3 @@
+ o Minor bugfixes:
+   - Downgrade "Got a certificate, but we already have it" log mesages from
+     warning to info, except when we're a dirauth.
index 490c123367331560821f58a314ad6ca22b601a12..8349b7ad6cb416976799e49d1b719047e4d1d09a 100644 (file)
@@ -217,9 +217,18 @@ trusted_dirs_load_certs_from_string(const char *contents, int from_store,
        * probably means we wanted a different secret key or we are trying to
        * replace an expired cert that has not in fact been updated. */
       if (!from_store) {
-        log_warn(LD_DIR, "Got a certificate for %s, but we already have it. "
-                 "Maybe they haven't updated it. Waiting for a while.",
-                 ds ? ds->nickname : "an old or new authority");
+        if (authdir_mode(get_options())) {
+          log_warn(LD_DIR,
+                   "Got a certificate for %s, but we already have it. "
+                   "Maybe they haven't updated it. Waiting for a while.",
+                   ds ? ds->nickname : "an old or new authority");
+        } else {
+          log_info(LD_DIR,
+                   "Got a certificate for %s, but we already have it. "
+                   "Maybe they haven't updated it. Waiting for a while.",
+                   ds ? ds->nickname : "an old or new authority");
+        }
+
         authority_cert_dl_failed(cert->cache_info.identity_digest, 404);
       }