diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 14:58:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 14:58:40 +0200 |
commit | a85d530384761a0af833caac9b38b9834517c9fa (patch) | |
tree | 5407dbcc32b6324067632d4c99f25a6b7d851230 /server/middlewares/validators/videos/video-studio.ts | |
parent | 2ec349aa857b0bd8f26de5cd78981d60c9b98a69 (diff) | |
download | PeerTube-a85d530384761a0af833caac9b38b9834517c9fa.tar.gz PeerTube-a85d530384761a0af833caac9b38b9834517c9fa.tar.zst PeerTube-a85d530384761a0af833caac9b38b9834517c9fa.zip |
Remove unnecessary logs
Diffstat (limited to 'server/middlewares/validators/videos/video-studio.ts')
-rw-r--r-- | server/middlewares/validators/videos/video-studio.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/middlewares/validators/videos/video-studio.ts b/server/middlewares/validators/videos/video-studio.ts index d07e150ae..b3e2d8101 100644 --- a/server/middlewares/validators/videos/video-studio.ts +++ b/server/middlewares/validators/videos/video-studio.ts | |||
@@ -12,7 +12,6 @@ import { CONFIG } from '@server/initializers/config' | |||
12 | import { approximateIntroOutroAdditionalSize, getTaskFile } from '@server/lib/video-studio' | 12 | import { approximateIntroOutroAdditionalSize, getTaskFile } from '@server/lib/video-studio' |
13 | import { isAudioFile } from '@shared/extra-utils' | 13 | import { isAudioFile } from '@shared/extra-utils' |
14 | import { HttpStatusCode, UserRight, VideoState, VideoStudioCreateEdition, VideoStudioTask } from '@shared/models' | 14 | import { HttpStatusCode, UserRight, VideoState, VideoStudioCreateEdition, VideoStudioTask } from '@shared/models' |
15 | import { logger } from '../../../helpers/logger' | ||
16 | import { areValidationErrors, checkUserCanManageVideo, checkUserQuota, doesVideoExist } from '../shared' | 15 | import { areValidationErrors, checkUserCanManageVideo, checkUserQuota, doesVideoExist } from '../shared' |
17 | 16 | ||
18 | const videoStudioAddEditionValidator = [ | 17 | const videoStudioAddEditionValidator = [ |
@@ -23,8 +22,6 @@ const videoStudioAddEditionValidator = [ | |||
23 | .custom(isValidStudioTasksArray).withMessage('Should have a valid array of tasks'), | 22 | .custom(isValidStudioTasksArray).withMessage('Should have a valid array of tasks'), |
24 | 23 | ||
25 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 24 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
26 | logger.debug('Checking videoStudioAddEditionValidator parameters.', { parameters: req.params, body: req.body, files: req.files }) | ||
27 | |||
28 | if (CONFIG.VIDEO_STUDIO.ENABLED !== true) { | 25 | if (CONFIG.VIDEO_STUDIO.ENABLED !== true) { |
29 | res.fail({ | 26 | res.fail({ |
30 | status: HttpStatusCode.BAD_REQUEST_400, | 27 | status: HttpStatusCode.BAD_REQUEST_400, |