From 55b811a259577a4b90ebd60e46d2462f368438e9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 14 Oct 2004 04:31:40 +0000 Subject: [PATCH] Improve warnings for old-style directories. svn:r2494 --- src/or/routerparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 4e96d28da0..6ee1c3f915 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -622,15 +622,16 @@ static int check_directory_signature(const char *digest, _pkey = declared_key; } if (!_pkey) { + log_fn(LOG_WARN, "Processing directory in old (before 0.0.9pre3) format--this may fail."); r = router_get_by_nickname(tok->args[0]); - log_fn(LOG_DEBUG, "Got directory signed by %s", tok->args[0]); + log_fn(LOG_DEBUG, "Got directory signed (allegedly) by %s", tok->args[0]); if (r && r->is_trusted_dir) { _pkey = r->identity_pkey; } else if (!r && pkey) { /* pkey provided for debugging purposes. */ _pkey = pkey; } else if (!r) { - log_fn(LOG_WARN, "Directory was signed by unrecognized server %s", + log_fn(LOG_WARN, "No server descriptor loaded for signer %s", tok->args[0]); return -1; } else if (r && !r->is_trusted_dir) {