Do not log duplicate cached URLs

This commit is contained in:
Bastian Kleineidam 2009-03-02 23:41:56 +01:00
parent 59772e4837
commit 3fd9e6db2b
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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: