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

fix flake error

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