A feature-rich command-line audio/video downloader
Always include warnings in debug output (#17059)
bashonlyd23e6f5a387d
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 08c3404d64..4f74164751 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -1138,9 +1138,10 @@ class YoutubeDL:"""if self.params.get('logger') is not None:self.params['logger'].warning(message)+ elif self.params.get('no_warnings'):+ if self.params.get('verbose'):+ self.to_stderr(f'[debug:warning] {message}', only_once=only_once)else:- if self.params.get('no_warnings'):- returnself.to_stderr(f'{self._format_err("WARNING:", self.Styles.WARNING)} {message}', only_once)def deprecation_warning(self, message, *, stacklevel=0):