From 0add5447f063548c0eab4bca0104f5094dd81e4b Mon Sep 17 00:00:00 2001
From: Bjarke Madsen <bjarke@nordu.net>
Date: Sun, 27 Aug 2023 16:48:26 +0200
Subject: [PATCH] Fix migrations messing up logging

---
 compendium_v2/migrations/env.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/compendium_v2/migrations/env.py b/compendium_v2/migrations/env.py
index e2408681..9683fdf4 100644
--- a/compendium_v2/migrations/env.py
+++ b/compendium_v2/migrations/env.py
@@ -1,5 +1,4 @@
 import logging
-from logging.config import fileConfig
 
 from flask import current_app
 
@@ -9,10 +8,6 @@ from alembic import context
 # access to the values within the .ini file in use.
 config = context.config
 
-# Interpret the config file for Python logging.
-# This line sets up loggers basically.
-if config.config_file_name is not None:
-    fileConfig(config.config_file_name)
 logger = logging.getLogger('alembic.env')
 
 
-- 
GitLab