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/user-history.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/user-history.ts')
-rw-r--r-- | server/middlewares/validators/user-history.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/server/middlewares/validators/user-history.ts b/server/middlewares/validators/user-history.ts index 23a00888c..f2dae3134 100644 --- a/server/middlewares/validators/user-history.ts +++ b/server/middlewares/validators/user-history.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | import express from 'express' | 1 | import express from 'express' |
2 | import { body, param, query } from 'express-validator' | 2 | import { body, param, query } from 'express-validator' |
3 | import { exists, isDateValid, isIdValid } from '../../helpers/custom-validators/misc' | 3 | import { exists, isDateValid, isIdValid } from '../../helpers/custom-validators/misc' |
4 | import { logger } from '../../helpers/logger' | ||
5 | import { areValidationErrors } from './shared' | 4 | import { areValidationErrors } from './shared' |
6 | 5 | ||
7 | const userHistoryListValidator = [ | 6 | const userHistoryListValidator = [ |
@@ -10,8 +9,6 @@ const userHistoryListValidator = [ | |||
10 | .custom(exists), | 9 | .custom(exists), |
11 | 10 | ||
12 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 11 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
13 | logger.debug('Checking userHistoryListValidator parameters', { parameters: req.query }) | ||
14 | |||
15 | if (areValidationErrors(req, res)) return | 12 | if (areValidationErrors(req, res)) return |
16 | 13 | ||
17 | return next() | 14 | return next() |
@@ -24,8 +21,6 @@ const userHistoryRemoveAllValidator = [ | |||
24 | .custom(isDateValid).withMessage('Should have a before date that conforms to ISO 8601'), | 21 | .custom(isDateValid).withMessage('Should have a before date that conforms to ISO 8601'), |
25 | 22 | ||
26 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 23 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
27 | logger.debug('Checking userHistoryRemoveAllValidator parameters', { parameters: req.body }) | ||
28 | |||
29 | if (areValidationErrors(req, res)) return | 24 | if (areValidationErrors(req, res)) return |
30 | 25 | ||
31 | return next() | 26 | return next() |
@@ -37,8 +32,6 @@ const userHistoryRemoveElementValidator = [ | |||
37 | .custom(isIdValid), | 32 | .custom(isIdValid), |
38 | 33 | ||
39 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 34 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
40 | logger.debug('Checking userHistoryRemoveElementValidator parameters', { parameters: req.params }) | ||
41 | |||
42 | if (areValidationErrors(req, res)) return | 35 | if (areValidationErrors(req, res)) return |
43 | 36 | ||
44 | return next() | 37 | return next() |