mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-01 19:34:43 +00:00
leak debugging
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1126 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
02f42652fe
commit
0ae492c0ee
1 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,9 @@ def get_debuglevel ():
|
|||
return _debuglevel
|
||||
|
||||
def set_debuglevel (i):
|
||||
if i>=NIGHTMARE:
|
||||
import gc
|
||||
gc.set_debug(gc.DEBUG_LEAK)
|
||||
global _debuglevel
|
||||
_debuglevel = i
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue