Unverified Commit 13ab1519 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

show lines in logging

parent b8e99181
Pipeline #17973 failed with stages
in 35 seconds
......@@ -23,7 +23,7 @@ if __name__ == "__main__":
numeric_level = getattr(logging, os.getenv('LOG_LEVEL').upper(), None)
if not isinstance(numeric_level, int):
raise ValueError(f'Invalid log level: {os.getenv("LOG_LEVEL")}')
logging.basicConfig(level=numeric_level)
logging.basicConfig(format='%(levelname)-8s [%(filename)s:%(lineno)d] %(message)s', level=numeric_level)
logging.info("Starting up")
runner = MediametadataToDB()
runner.run()
......
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