diff --git a/Changelog.md b/Changelog.md index 3ed41dc..99d61fb 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 diff --git a/fourmi.py b/fourmi.py index 319e35d..9408818 100755 --- a/fourmi.py +++ b/fourmi.py @@ -61,7 +61,8 @@ def search(docopt_arguments, source_loader): conf.set_output(docopt_arguments["--output"], docopt_arguments["--format"]) setup_crawler(docopt_arguments[""], 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()