From 3fd9e6db2b1edd2f89a366c116209b42328b874b Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 2 Mar 2009 23:41:56 +0100 Subject: [PATCH] Do not log duplicate cached URLs --- ChangeLog.txt | 2 ++ linkcheck/director/logger.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 67c7688e..6d93d8e0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -11,6 +11,8 @@ * The content size of downloads is now shown again. + * Make output more concise by not logging duplicate cached URLs. + 5.0.2 "All the boys love Mandy Lane" (released 13.2.2009) * Properly detect location of the log configuration file in the Windows diff --git a/linkcheck/director/logger.py b/linkcheck/director/logger.py index 2519036d..62dd6300 100644 --- a/linkcheck/director/logger.py +++ b/linkcheck/director/logger.py @@ -52,9 +52,9 @@ class Logger (object): """Determine if URL entry should be logged or not.""" if self.complete: return True + if url_data.cached and url_data.valid: + return False if self.verbose: - if url_data.cached and url_data.valid: - return False return True has_warnings = False for tag, dummy in url_data.warnings: