reload spider modules silently

This commit is contained in:
Pablo Hoffman 2009-09-02 00:48:29 -03:00
parent 596d2c4479
commit db5420f8d5
1 changed files with 3 additions and 2 deletions

View File

@ -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