add -v/--verbose option and reduce error verbosity

(#12)
This commit is contained in:
Mike Fährmann
2017-04-18 11:38:48 +02:00
parent 0770de0ea1
commit 5af35ea150
3 changed files with 17 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ def main():
parser = option.build_parser()
args = parser.parse_args()
logging.getLogger().setLevel(args.loglevel)
if args.cfgfiles:
config.load(*args.cfgfiles, strict=True)
@@ -102,6 +103,7 @@ def main():
for url in urls:
try:
log.debug("Starting %s for '%s'", jobtype.__name__, url)
jobtype(url).run()
except exception.NoExtractorError:
log.error("No suitable extractor found for '%s'", url)