Disable logging when not verbose
This commit is contained in:
parent
3f0b203057
commit
9660872602
@ -1,5 +1,6 @@
|
||||
### v0.5.3
|
||||
- FIX: It is now again possible to use both verbose and the source inclusion/exclusion options
|
||||
- FIX: Logging is now "actually" disabled if not using the verbose option.
|
||||
|
||||
### v0.5.2
|
||||
- FIX: Signatured used to contain untracked and older files, current signature
|
||||
|
@ -61,7 +61,8 @@ def search(docopt_arguments, source_loader):
|
||||
conf.set_output(docopt_arguments["--output"], docopt_arguments["--format"])
|
||||
setup_crawler(docopt_arguments["<compound>"], conf.scrapy_settings,
|
||||
source_loader, docopt_arguments["--attributes"].split(','))
|
||||
log.start(conf.scrapy_settings.get("LOG_FILE"),
|
||||
if conf.scrapy_settings.getbool("LOG_ENABLED"):
|
||||
log.start(conf.scrapy_settings.get("LOG_FILE"),
|
||||
conf.scrapy_settings.get("LOG_LEVEL"), conf.scrapy_settings.get("LOG_STDOUT"))
|
||||
reactor.run()
|
||||
|
||||
|
Reference in New Issue
Block a user