From: Chocobozzz Date: Mon, 25 Oct 2021 08:18:41 +0000 (+0200) Subject: Don't write youtube-dl stdout in log X-Git-Tag: v4.0.0-rc.1~201 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b2ad0090c182c7f2a8cba1cced3987d408a4b159;p=github%2FChocobozzz%2FPeerTube.git Don't write youtube-dl stdout in log It's too big --- diff --git a/server/helpers/youtube-dl/youtube-dl-cli.ts b/server/helpers/youtube-dl/youtube-dl-cli.ts index 440869205..559f92984 100644 --- a/server/helpers/youtube-dl/youtube-dl-cli.ts +++ b/server/helpers/youtube-dl/youtube-dl-cli.ts @@ -155,7 +155,7 @@ export class YoutubeDLCLI { const output = await execa('python', [ youtubeDLBinaryPath, ...completeArgs, url ], processOptions) - logger.debug('Runned youtube-dl command.', { command: output.command, stdout: output.stdout, ...lTags() }) + logger.debug('Runned youtube-dl command.', { command: output.command, ...lTags() }) return output.stdout ? output.stdout.trim().split(/\r?\n/)