This commit is contained in:
kim minji 2017-08-16 18:07:52 +09:00 committed by GitHub
parent d5f3543d77
commit 1dcea6a9d4
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class Crawler(object):
handler = LogCounterHandler(self, level=self.settings.get('LOG_LEVEL'))
logging.root.addHandler(handler)
if get_scrapy_root_handler() is not None:
# scrapy root handler alread installed: update it with new settings
# scrapy root handler already installed: update it with new settings
install_scrapy_root_handler(self.settings)
# lambda is assigned to Crawler attribute because this way it is not
# garbage collected after leaving __init__ scope