From 8e289cc52282a5e1a5b2d7a3a4bf449bd2fde964 Mon Sep 17 00:00:00 2001 From: calvin Date: Wed, 9 Mar 2005 20:11:44 +0000 Subject: [PATCH] dont disable threading on thread debugging git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2385 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/configuration.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linkcheck/configuration.py b/linkcheck/configuration.py index e87f52de..938fd633 100644 --- a/linkcheck/configuration.py +++ b/linkcheck/configuration.py @@ -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()