mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-20 14:20:59 +00:00
added NOneLogger, adjust blacklist default file and handling
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1221 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
d78d96dd0e
commit
8a474914f3
1 changed files with 4 additions and 3 deletions
|
|
@ -154,11 +154,12 @@ class Configuration (dict):
|
|||
'separator': ';',
|
||||
}
|
||||
self['blacklist'] = {
|
||||
"filename": "~/.blacklist",
|
||||
"filename": "~/.linkchecker_blacklist",
|
||||
}
|
||||
self['xml'] = {
|
||||
"filename": "linkchecker-out.xml",
|
||||
}
|
||||
self['none'] = {}
|
||||
self['log'] = self.newLogger('text')
|
||||
self["quiet"] = False
|
||||
self["warningregex"] = None
|
||||
|
|
@ -408,8 +409,8 @@ class Configuration (dict):
|
|||
filelist = cfgparser.get(section, "fileoutput").split(",")
|
||||
for arg in filelist:
|
||||
arg = arg.strip()
|
||||
# no file output for the blacklist Logger
|
||||
if Loggers.has_key(arg) and arg != "blacklist":
|
||||
# no file output for the blacklist and none Logger
|
||||
if Loggers.has_key(arg) and arg not in ["blacklist", "none"]:
|
||||
self['fileoutput'].append(
|
||||
self.newLogger(arg, {'fileoutput':1}))
|
||||
except ConfigParser.Error, msg: debug(NIGHTMARE, msg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue