Merge pull request #673 from cjmayo/sitemap

Fix sitemap output with multiple threads
This commit is contained in:
Chris Mayo 2022-10-05 19:20:40 +01:00 committed by GitHub
commit 354ea933ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 9 deletions

View file

@ -156,12 +156,10 @@ Application
.. option:: -D STRING, --debug=STRING
Print debugging output for the given logger. Available loggers are
cmdline, checking, cache, dns, plugin and
all. Specifying all is an alias for specifying all available
loggers. The option can be given multiple times to debug with more
than one logger. For accurate results, threading will be disabled
during debug runs.
Print debugging output for the given logger.
Available loggers are cmdline, checking, cache, plugin and all.
all is an alias for all available loggers.
This option can be given multiple times to debug with more than one logger.
Quiet
"""""

View file

@ -57,6 +57,7 @@ def check_url(url_data, logger):
for alias in url_data.aliases:
# redirect aliases
cache.add_result(alias, result)
logger.log_url(result)
# parse content recursively
# XXX this could add new warnings which should be cached.
if do_parse:
@ -74,7 +75,7 @@ def check_url(url_data, logger):
result.column = url_data.column
result.level = url_data.recursion_level
result.name = url_data.name
logger.log_url(result)
logger.log_url(result)
class Checker(task.LoggedCheckedTask):

View file

@ -181,8 +181,6 @@ def get_test_aggregate(confargs, logargs, logger=TestLogger):
config["recursionlevel"] = 1
config["logger"] = config.logger_new(logger.LoggerName, **logargs)
add_fileoutput_config(config)
# uncomment for debugging
# config.init_logging(None, debug=["all"])
config["verbose"] = True
config["threads"] = 0
config["status"] = False