Use print() for cookie debug log so it shows in container logs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
inputnoise
2026-05-25 21:25:39 +02:00
parent d50ccf399f
commit a09f8ac5c2

View File

@@ -465,8 +465,7 @@ def start_download(
def _run_download():
with _SEMAPHORE:
cookie_args = _cookie_args()
import logging
logging.getLogger(__name__).info("download cookie_args=%r file_exists=%s", cookie_args, Path(cookie_args[1]).exists() if len(cookie_args) == 2 and cookie_args[0] == "--cookies" else "n/a")
print(f"[ytdlp] cookie_args={cookie_args!r} file_exists={Path(cookie_args[1]).exists() if len(cookie_args) == 2 and cookie_args[0] == '--cookies' else 'n/a'}", flush=True)
process = subprocess.Popen(
[
"yt-dlp", url,