mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Log ffmpeg command
This commit is contained in:
parent
d688602710
commit
d0ea3e34d0
1 changed files with 5 additions and 1 deletions
|
@ -703,6 +703,10 @@ async function runCommand (options: {
|
|||
const { command, silent = false, job } = options
|
||||
|
||||
return new Promise<void>((res, rej) => {
|
||||
let shellCommand: string
|
||||
|
||||
command.on('start', cmdline => { shellCommand = cmdline })
|
||||
|
||||
command.on('error', (err, stdout, stderr) => {
|
||||
if (silent !== true) logger.error('Error in ffmpeg.', { stdout, stderr })
|
||||
|
||||
|
@ -710,7 +714,7 @@ async function runCommand (options: {
|
|||
})
|
||||
|
||||
command.on('end', (stdout, stderr) => {
|
||||
logger.debug('FFmpeg command ended.', { stdout, stderr })
|
||||
logger.debug('FFmpeg command ended.', { stdout, stderr, shellCommand })
|
||||
|
||||
res()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue