debugging

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1128 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2003-12-29 19:13:20 +00:00
parent 83a8c945dd
commit 06ddaf2bab

View file

@ -154,6 +154,7 @@ class Configuration (dict):
self.enableThreading(10)
except ImportError:
type, value = sys.exc_info()[:2]
debug(HURT_ME_PLENTY, "no threading available")
self.disableThreading()
self.cookies = {}
@ -473,6 +474,7 @@ class Configuration (dict):
try:
num = cfgparser.getint(section, "threads")
if num > 0:
debug(HURT_ME_PLENTY, "set threading with %d threads", num)
self.enableThreading(num)
else:
self.disableThreading()