From 058bb50783618781e4e5ef980513583fb2cf6797 Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Thu, 22 Jun 2023 12:44:46 +0200 Subject: [PATCH] added logging message --- src/music_kraken/objects/target.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/music_kraken/objects/target.py b/src/music_kraken/objects/target.py index b979951..c84ebe3 100644 --- a/src/music_kraken/objects/target.py +++ b/src/music_kraken/objects/target.py @@ -1,5 +1,6 @@ from pathlib import Path from typing import List, Tuple, TextIO +import logging import requests from tqdm import tqdm @@ -8,6 +9,9 @@ from .parents import DatabaseObject from ..utils import shared +LOGGER = logging.getLogger("target") + + class Target(DatabaseObject): """ create somehow like that @@ -67,6 +71,7 @@ class Target(DatabaseObject): def copy_content(self, copy_to: "Target"): if not self.exists: + LOGGER.warning(f"No file exists at: {self.file_path}") return with open(self.file_path, "rb") as read_from: