mirror of https://github.com/scrapy/scrapy.git
Added informative message when trying to use trackref and it's not enabled
This commit is contained in:
parent
fd50891113
commit
34fcf6ba5b
|
|
@ -34,6 +34,9 @@ if not settings.getbool('TRACK_REFS'):
|
|||
object_ref = object
|
||||
|
||||
def print_live_refs():
|
||||
if object_ref is object:
|
||||
print "The trackref module is disabled. Use TRACK_REFS setting to enable it."
|
||||
return
|
||||
print "Live References"
|
||||
print
|
||||
now = time()
|
||||
|
|
|
|||
Loading…
Reference in New Issue