warn about sitemap logger and non-verbose output

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2390 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-03-10 19:26:14 +00:00
parent 7f4b062f7c
commit 8b8403c32e

View file

@ -621,6 +621,13 @@ if constructauth:
linkcheck.log.debug(linkcheck.LOG_CMDLINE, "configuration: %s",
pprint.pformat(config.items()))
# warn about sitemap loggers and verbose output
klasses = [c.__class__ for c in [config['logger']] + config['fileoutput']]
if (linkcheck.logger.gml.GMLLogger in klasses or \
linkcheck.logger.dot.DOTLogger in klasses) and not config['verbose']:
linkcheck.log.warn(linkcheck.LOG_CMDLINE,
_("Using DOT or GML loggers without verbose output"
" gives an incomplete sitemap graph."))
# try to generate empty config dir if not already there
userconfdir = linkcheck.configuration.normpath("~/.linkchecker")