From 3de630ec678df36244d8c693a54cc5c24f615c4f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 7 Aug 2004 05:12:08 +0000 Subject: Only warn about version newness once svn:r2189 --- src/or/routerparse.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/or/routerparse.c') diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 36d4fd38f..01641625b 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -197,6 +197,7 @@ get_recommended_software_from_directory(const char *str) char *version, *comma, *cp; tor_version_t mine, other; int found_newer = 0, r; + static int warned_too_new=0; vl = versionlist; @@ -234,8 +235,11 @@ get_recommended_software_from_directory(const char *str) break; } if (!found_newer) { - log_fn(LOG_WARN, "This version of Tor (%s) is newer than any on the recommended list (%s)", - myversion, versionlist); + if (!warned_too_new) { + log_fn(LOG_WARN, "This version of Tor (%s) is newer than any on the recommended list (%s)", + myversion, versionlist); + warned_too_new=1; + } return 0; } else { return 1; -- cgit v1.2.3