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/feeds.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/feeds.ts')
-rw-r--r-- | server/middlewares/validators/feeds.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/server/middlewares/validators/feeds.ts b/server/middlewares/validators/feeds.ts index 900c1d383..0bfe89e6f 100644 --- a/server/middlewares/validators/feeds.ts +++ b/server/middlewares/validators/feeds.ts | |||
@@ -3,7 +3,6 @@ import { param, query } from 'express-validator' | |||
3 | import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' | 3 | import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' |
4 | import { isValidRSSFeed } from '../../helpers/custom-validators/feeds' | 4 | import { isValidRSSFeed } from '../../helpers/custom-validators/feeds' |
5 | import { exists, isIdOrUUIDValid, isIdValid, toCompleteUUID } from '../../helpers/custom-validators/misc' | 5 | import { exists, isIdOrUUIDValid, isIdValid, toCompleteUUID } from '../../helpers/custom-validators/misc' |
6 | import { logger } from '../../helpers/logger' | ||
7 | import { | 6 | import { |
8 | areValidationErrors, | 7 | areValidationErrors, |
9 | checkCanSeeVideo, | 8 | checkCanSeeVideo, |
@@ -24,8 +23,6 @@ const feedsFormatValidator = [ | |||
24 | .custom(isValidRSSFeed).withMessage('Should have a valid format (rss, atom, json)'), | 23 | .custom(isValidRSSFeed).withMessage('Should have a valid format (rss, atom, json)'), |
25 | 24 | ||
26 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 25 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
27 | logger.debug('Checking feeds format parameters', { parameters: req.query }) | ||
28 | |||
29 | if (areValidationErrors(req, res)) return | 26 | if (areValidationErrors(req, res)) return |
30 | 27 | ||
31 | return next() | 28 | return next() |
@@ -74,8 +71,6 @@ const videoFeedsValidator = [ | |||
74 | .optional(), | 71 | .optional(), |
75 | 72 | ||
76 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 73 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
77 | logger.debug('Checking feeds parameters', { parameters: req.query }) | ||
78 | |||
79 | if (areValidationErrors(req, res)) return | 74 | if (areValidationErrors(req, res)) return |
80 | 75 | ||
81 | if (req.query.accountId && !await doesAccountIdExist(req.query.accountId, res)) return | 76 | if (req.query.accountId && !await doesAccountIdExist(req.query.accountId, res)) return |
@@ -95,8 +90,6 @@ const videoSubscriptionFeedsValidator = [ | |||
95 | .custom(exists), | 90 | .custom(exists), |
96 | 91 | ||
97 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 92 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
98 | logger.debug('Checking subscription feeds parameters', { parameters: req.query }) | ||
99 | |||
100 | if (areValidationErrors(req, res)) return | 93 | if (areValidationErrors(req, res)) return |
101 | 94 | ||
102 | if (!await doesAccountIdExist(req.query.accountId, res)) return | 95 | if (!await doesAccountIdExist(req.query.accountId, res)) return |
@@ -113,8 +106,6 @@ const videoCommentsFeedsValidator = [ | |||
113 | .custom(isIdOrUUIDValid), | 106 | .custom(isIdOrUUIDValid), |
114 | 107 | ||
115 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 108 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
116 | logger.debug('Checking feeds parameters', { parameters: req.query }) | ||
117 | |||
118 | if (areValidationErrors(req, res)) return | 109 | if (areValidationErrors(req, res)) return |
119 | 110 | ||
120 | if (req.query.videoId && (req.query.videoChannelId || req.query.videoChannelName)) { | 111 | if (req.query.videoId && (req.query.videoChannelId || req.query.videoChannelName)) { |