1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Improve logging

This commit is contained in:
Chocobozzz 2025-03-17 10:27:37 +01:00
parent cc7fdc81aa
commit 575ec2beaf
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 30 additions and 19 deletions

View file

@ -21,7 +21,7 @@ import { VideoModel } from '../../../models/video/video.js'
type HandlerFunction = (job: Job, payload: VideoTranscodingPayload, video: MVideoFullLight, user: MUser) => Promise<void>
const handlers: { [ id in VideoTranscodingPayload['type'] ]: HandlerFunction } = {
const handlers: { [id in VideoTranscodingPayload['type']]: HandlerFunction } = {
'new-resolution-to-hls': handleHLSJob,
'new-resolution-to-web-video': handleNewWebVideoResolutionJob,
'merge-audio-to-web-video': handleWebVideoMergeAudioJob,
@ -37,7 +37,7 @@ async function processVideoTranscoding (job: Job) {
const video = await VideoModel.loadFull(payload.videoUUID)
// No video, maybe deleted?
if (!video) {
logger.info('Do not process job %d, video does not exist.', job.id, lTags(payload.videoUUID))
logger.info(`Do not process job ${job.id}, video does not exist.`, lTags(payload.videoUUID))
return undefined
}