mirror of https://github.com/scrapy/scrapy.git
reload spider modules silently
This commit is contained in:
parent
596d2c4479
commit
db5420f8d5
|
|
@ -117,6 +117,7 @@ class TwistedPluginSpiderManager(object):
|
|||
spider
|
||||
"""
|
||||
module_name = spider.__module__
|
||||
log.msg("reloading module %s" % module_name, domain=domain)
|
||||
new_module = rebuild(sys.modules[module_name])
|
||||
log.msg("Reloading module %s" % module_name, domain=domain, \
|
||||
level=log.DEBUG)
|
||||
new_module = rebuild(sys.modules[module_name], doLog=0)
|
||||
self._spiders[domain] = new_module.SPIDER
|
||||
|
|
|
|||
Loading…
Reference in New Issue