From a85d530384761a0af833caac9b38b9834517c9fa Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 14:58:40 +0200 Subject: Remove unnecessary logs --- server/middlewares/validators/videos/video-channels.ts | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'server/middlewares/validators/videos/video-channels.ts') diff --git a/server/middlewares/validators/videos/video-channels.ts b/server/middlewares/validators/videos/video-channels.ts index ad1415691..8338b24fc 100644 --- a/server/middlewares/validators/videos/video-channels.ts +++ b/server/middlewares/validators/videos/video-channels.ts @@ -12,7 +12,6 @@ import { isVideoChannelSupportValid, isVideoChannelUsernameValid } from '../../../helpers/custom-validators/video-channels' -import { logger } from '../../../helpers/logger' import { ActorModel } from '../../../models/actor/actor' import { VideoChannelModel } from '../../../models/video/video-channel' import { areValidationErrors, checkUserQuota, doesVideoChannelNameWithHostExist } from '../shared' @@ -31,8 +30,6 @@ export const videoChannelsAddValidator = [ .custom(isVideoChannelSupportValid), async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking videoChannelsAdd parameters', { parameters: req.body }) - if (areValidationErrors(req, res)) return const actor = await ActorModel.loadLocalByName(req.body.name) @@ -72,8 +69,6 @@ export const videoChannelsUpdateValidator = [ .custom(isBooleanValid).withMessage('Should have a valid bulkVideosSupportUpdate boolean field'), (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking videoChannelsUpdate parameters', { parameters: req.body }) - if (areValidationErrors(req, res)) return return next() @@ -82,8 +77,6 @@ export const videoChannelsUpdateValidator = [ export const videoChannelsRemoveValidator = [ async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking videoChannelsRemove parameters', { parameters: req.params }) - if (!await checkVideoChannelIsNotTheLastOne(res.locals.videoChannel, res)) return return next() @@ -95,8 +88,6 @@ export const videoChannelsNameWithHostValidator = [ .exists(), async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking videoChannelsNameWithHostValidator parameters', { parameters: req.params }) - if (areValidationErrors(req, res)) return if (!await doesVideoChannelNameWithHostExist(req.params.nameWithHost, res)) return @@ -147,8 +138,6 @@ export const videoChannelsListValidator = [ .not().isEmpty(), (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking video channels search query', { parameters: req.query }) - if (areValidationErrors(req, res)) return return next() @@ -164,8 +153,6 @@ export const videoChannelImportVideosValidator = [ .custom(isIdValid), async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking videoChannelImport parameters', { parameters: req.body }) - if (areValidationErrors(req, res)) return const body: VideosImportInChannelCreate = req.body -- cgit v1.2.3