diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-08-07 05:12:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-08-07 05:12:08 +0000 |
commit | 3de630ec678df36244d8c693a54cc5c24f615c4f (patch) | |
tree | 6f3b503b65a5e7ca1811bb11e69776d52c86af27 /src | |
parent | dbf150bd4ee75fbb73413d57563e70fc30bfd4ae (diff) | |
download | tor-3de630ec678df36244d8c693a54cc5c24f615c4f.tar tor-3de630ec678df36244d8c693a54cc5c24f615c4f.tar.gz |
Only warn about version newness once
svn:r2189
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerparse.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; |