Commit bdc82702 authored by Andrea Shepard's avatar Andrea Shepard Committed by Nick Mathewson
Browse files

Downgrade 'Got a certificate, but we already have it' log message from warning...

Downgrade 'Got a certificate, but we already have it' log message from warning to info, except when we're a dirauth (fixes bug 5238)
parent 23f2e37f
Loading
Loading
Loading
Loading

changes/bug5238

0 → 100644
+3 −0
Original line number Diff line number Diff line
 o Minor bugfixes:
   - Downgrade "Got a certificate, but we already have it" log mesages from
     warning to info, except when we're a dirauth.
+12 −3
Original line number Diff line number Diff line
@@ -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. "
        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);
      }