Utils can't use the logging facilities as they aren't started yet
This commit is contained in:
parent
4672903c9b
commit
f604c3efcc
@ -1,6 +1,5 @@
|
|||||||
import ConfigParser
|
import ConfigParser
|
||||||
|
|
||||||
from scrapy import log
|
|
||||||
from scrapy.utils.project import get_project_settings
|
from scrapy.utils.project import get_project_settings
|
||||||
|
|
||||||
|
|
||||||
@ -90,7 +89,6 @@ class Configurator:
|
|||||||
elif config.defaults():
|
elif config.defaults():
|
||||||
section = config.defaults()
|
section = config.defaults()
|
||||||
if 'reliability' not in section:
|
if 'reliability' not in section:
|
||||||
log.msg('Reliability not set for %s' % sourcename,
|
print 'Reliability not set for %s' % sourcename
|
||||||
level=log.WARNING)
|
|
||||||
section['reliability'] = ''
|
section['reliability'] = ''
|
||||||
return section
|
return section
|
||||||
|
Reference in New Issue
Block a user