mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-07 00:00:58 +00:00
dont disable threading on thread debugging
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2385 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
932c9864cb
commit
8e289cc522
1 changed files with 4 additions and 3 deletions
|
|
@ -167,7 +167,7 @@ class Configuration (dict):
|
|||
When debug is not None it is expected to be a list of
|
||||
logger names for which debugging will be enabled.
|
||||
|
||||
Activating debugging disables threading.
|
||||
If no thread debugging is enabled, threading will be disabled.
|
||||
"""
|
||||
config_dir = _linkchecker_configdata.config_dir
|
||||
filename = normpath(os.path.join(config_dir, "logging.conf"))
|
||||
|
|
@ -177,8 +177,9 @@ class Configuration (dict):
|
|||
logging.getLogger(linkcheck.LOG).addHandler(handler)
|
||||
if debug is not None:
|
||||
self['debug'] = True
|
||||
# debugging disables threading
|
||||
self['threads'] = 0
|
||||
# disable threading if no thread debugging
|
||||
if "thread" not in debug:
|
||||
self['threads'] = 0
|
||||
# set debugging on given logger names
|
||||
if 'all' in debug:
|
||||
debug = linkcheck.lognames.values()
|
||||
|
|
|
|||
Loading…
Reference in a new issue