From 593a4ff3a3bf645bb858a9698338af06b7edcdbd Mon Sep 17 00:00:00 2001 From: Hellow Date: Sun, 27 Nov 2022 15:07:02 +0100 Subject: [PATCH] fixed logger issue in database.p --- src/music_kraken/database/database.py | 4 ++++ src/music_kraken/database/temp_database.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/music_kraken/database/database.py b/src/music_kraken/database/database.py index ce9420e..91360d1 100644 --- a/src/music_kraken/database/database.py +++ b/src/music_kraken/database/database.py @@ -6,7 +6,11 @@ import json import requests from . import song +from ..utils.shared import ( + DATABASE_LOGGER +) +logger = DATABASE_LOGGER class Database: def __init__(self, path_to_db: str, db_structure: str, db_structure_fallback: str, reset_anyways: bool = False): diff --git a/src/music_kraken/database/temp_database.py b/src/music_kraken/database/temp_database.py index 1231e49..dfb0a3d 100644 --- a/src/music_kraken/database/temp_database.py +++ b/src/music_kraken/database/temp_database.py @@ -7,6 +7,8 @@ from ..utils.shared import ( DATABASE_LOGGER ) +logger = DATABASE_LOGGER + class TempDatabase(Database): def __init__(self) -> None: