mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-09 15:14:45 +00:00
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:
parent
7f4b062f7c
commit
8b8403c32e
1 changed files with 7 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue