refactored logger
This commit is contained in:
parent
68e7d7cb3c
commit
016a5e938f
@ -1,15 +1,11 @@
|
||||
from collections import defaultdict
|
||||
from typing import Optional, Dict, Type, Tuple, List, TYPE_CHECKING
|
||||
import uuid
|
||||
import random
|
||||
import uuid
|
||||
from collections import defaultdict
|
||||
from typing import Optional, Dict, Tuple, List
|
||||
|
||||
from ..utils.shared import (
|
||||
SONG_LOGGER as LOGGER
|
||||
)
|
||||
from .metadata import Metadata
|
||||
from .option import Options
|
||||
if TYPE_CHECKING:
|
||||
from .collection import Collection
|
||||
from ..utils.shared import OBJECT_LOGGER as LOGGER
|
||||
|
||||
|
||||
class DatabaseObject:
|
||||
|
@ -1,13 +1,11 @@
|
||||
from collections import defaultdict
|
||||
from typing import Tuple, List, Set, Dict, Type, Union, Optional
|
||||
from typing import Tuple, List, Set, Type, Optional
|
||||
|
||||
from . import page_attributes
|
||||
from .download import Download
|
||||
from .multiple_options import MultiPageOptions
|
||||
from ..abstract import Page
|
||||
from ...objects import Options, DatabaseObject, Source
|
||||
from ...utils.shared import DOWNLOAD_LOGGER as LOGGER
|
||||
from ..support_classes.download_result import DownloadResult
|
||||
from ...objects import DatabaseObject, Source
|
||||
|
||||
|
||||
class Search(Download):
|
||||
|
@ -44,21 +44,17 @@ logging.basicConfig(
|
||||
]
|
||||
)
|
||||
|
||||
SONG_LOGGER = logging.getLogger("song-obj")
|
||||
SEARCH_LOGGER = logging.getLogger("mb-cli")
|
||||
INIT_PATH_LOGGER = logging.getLogger("init_path")
|
||||
OBJECT_LOGGER = logging.getLogger("objects")
|
||||
TARGET_LOGGER = logging.getLogger("target")
|
||||
DATABASE_LOGGER = logging.getLogger("database")
|
||||
METADATA_DOWNLOAD_LOGGER = logging.getLogger("metadata")
|
||||
URL_DOWNLOAD_LOGGER = logging.getLogger("AudioSource")
|
||||
TAGGING_LOGGER = logging.getLogger("tagging")
|
||||
|
||||
YOUTUBE_LOGGER = logging.getLogger("Youtube")
|
||||
MUSIFY_LOGGER = logging.getLogger("Musify")
|
||||
PATH_LOGGER = logging.getLogger("create-paths")
|
||||
DOWNLOAD_LOGGER = logging.getLogger("download")
|
||||
LYRICS_LOGGER = logging.getLogger("lyrics")
|
||||
GENIUS_LOGGER = logging.getLogger("genius")
|
||||
ENCYCLOPAEDIA_METALLUM_LOGGER = logging.getLogger("ma")
|
||||
|
||||
DOWNLOAD_LOGGER = logging.getLogger("download")
|
||||
|
||||
NOT_A_GENRE = ".", "..", "misc_scripts", "Music", "script", ".git", ".idea"
|
||||
MUSIC_DIR = Path(os.path.expanduser("~"), "Music")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user