Commit f30aa6c0 authored by BorjaEst's avatar BorjaEst
Browse files

Edit main function to improve log format

parent 39431e78
......@@ -26,20 +26,18 @@ if __name__ == '__main__':
args = cmdline_args()
# Set logging level
logging.basicConfig(level=getattr(logging, args.verbosity),
format='%(asctime)s - %(levelname)-8s - %(message)s')
logformat = '%(asctime)s %(name)-16s %(levelname)-8s %(message)s'
logging.basicConfig(level=getattr(logging, args.verbosity), format=logformat)
# Configuration load"Lookinf for config at: '%s'", args.sources_file)
config = utils.load(args.sources_file)"Configuration found at: '%s'", args.sources_file)
logging.debug("Configuration info: %s", config)
# Create sources"Loading data from './data' ")
ds = {name: sources.Source(name, collection) for
name, collection in config.items()}
logging.debug("Sources loaded: %s", [k for k in config.keys()])
# Skim output"Skimming data to './output' ")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment