Commit 81e399ed authored by Tim Schoof's avatar Tim Schoof
Browse files

Include line number in log messages

parent 119d94ee
......@@ -55,7 +55,9 @@ class Application:
options = parsed_args_to_dict(parsed_args)
log_level = options["log_level"]
format = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
format = (
"%(asctime)s AsapoWorker %(filename)s:%(lineno)d "
"%(levelname)-8s %(message)s")
logging.basicConfig(level=log_level, format=format)"Log level set to %s", log_level)
Markdown is supported
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