From ec7c05d53f40f5a180fede98af41e3568f76157e Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 31 Jan 2025 08:46:49 -0500 Subject: [PATCH] Update local_settings.py.container --- tubesync/tubesync/local_settings.py.container | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tubesync/tubesync/local_settings.py.container b/tubesync/tubesync/local_settings.py.container index fe5e11a7..28bd49f4 100644 --- a/tubesync/tubesync/local_settings.py.container +++ b/tubesync/tubesync/local_settings.py.container @@ -1,4 +1,5 @@ import os +import sys from pathlib import Path from urllib.parse import urljoin from common.utils import parse_database_connection_string @@ -31,8 +32,8 @@ if database_connection_env: if database_dict: - # check that logging was already imported a better way - from common.logger import log + if 'logging' not in sys.modules: + from common.logger import log log.info(f'Using database connection: {database_dict["ENGINE"]}://' f'{database_dict["USER"]}:[hidden]@{database_dict["HOST"]}:' f'{database_dict["PORT"]}/{database_dict["NAME"]}')