mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-19 13:51:01 +00:00
debugging
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1128 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
83a8c945dd
commit
06ddaf2bab
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue