From 545cf98f79ef391a3f918f4efb8edaa1c681951c Mon Sep 17 00:00:00 2001 From: Hellow Date: Tue, 4 Apr 2023 21:11:58 +0200 Subject: [PATCH] added logging --- src/music_kraken/pages/support_classes/download_result.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/music_kraken/pages/support_classes/download_result.py b/src/music_kraken/pages/support_classes/download_result.py index 92889de..0f05239 100644 --- a/src/music_kraken/pages/support_classes/download_result.py +++ b/src/music_kraken/pages/support_classes/download_result.py @@ -1,7 +1,7 @@ from dataclasses import dataclass, field from typing import List -from ...utils.shared import SHOW_DOWNLOAD_ERRORS_THRESHOLD +from ...utils.shared import SHOW_DOWNLOAD_ERRORS_THRESHOLD, DOWNLOAD_LOGGER as LOGGER @dataclass @@ -30,6 +30,7 @@ class DownloadResult: def merge(self, other: "DownloadResult"): if other.fatal_error: + LOGGER.debug(other.error_message) self._error_message_list.append(other.error_message) self.total += 1 self.fail += 1