[BACKEND] More verbose logging when breaking

This commit is contained in:
Jesse Bannon 2023-02-20 10:15:30 -08:00
parent f713d720e4
commit 2b426e7500

View file

@ -369,11 +369,17 @@ class Downloader(DownloadArchiver, Generic[DownloaderOptionsT], ABC):
with self._listen_and_log_downloaded_info_json(log_prefix=log_prefix_on_info_json_dl): with self._listen_and_log_downloaded_info_json(log_prefix=log_prefix_on_info_json_dl):
_ = self.extract_info(ytdl_options_overrides=ytdl_options_overrides, **kwargs) _ = self.extract_info(ytdl_options_overrides=ytdl_options_overrides, **kwargs)
except RejectedVideoReached: except RejectedVideoReached:
download_logger.debug("RejectedVideoReached, stopping additional downloads") download_logger.info(
"RejectedVideoReached, stopping additional downloads. "
"Disable by setting `ytdl_options.break_on_reject` to False."
)
except ExistingVideoReached: except ExistingVideoReached:
download_logger.debug("ExistingVideoReached, stopping additional downloads") download_logger.info(
"ExistingVideoReached, stopping additional downloads. "
"Disable by setting `ytdl_options.break_on_existing` to False."
)
except MaxDownloadsReached: except MaxDownloadsReached:
download_logger.debug("MaxDownloadsReached, stopping additional downloads") download_logger.info("MaxDownloadsReached, stopping additional downloads.")
return self._get_entry_dicts_from_info_json_files() return self._get_entry_dicts_from_info_json_files()