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/server.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/server.ts')
-rw-r--r-- | server/middlewares/validators/server.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/server/middlewares/validators/server.ts b/server/middlewares/validators/server.ts index f6177f600..d040e8a1f 100644 --- a/server/middlewares/validators/server.ts +++ b/server/middlewares/validators/server.ts | |||
@@ -13,8 +13,6 @@ const serverGetValidator = [ | |||
13 | body('host').custom(isHostValid).withMessage('Should have a valid host'), | 13 | body('host').custom(isHostValid).withMessage('Should have a valid host'), |
14 | 14 | ||
15 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 15 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
16 | logger.debug('Checking serverGetValidator parameters', { parameters: req.body }) | ||
17 | |||
18 | if (areValidationErrors(req, res)) return | 16 | if (areValidationErrors(req, res)) return |
19 | 17 | ||
20 | const server = await ServerModel.loadByHost(req.body.host) | 18 | const server = await ServerModel.loadByHost(req.body.host) |
@@ -40,8 +38,6 @@ const contactAdministratorValidator = [ | |||
40 | .custom(isValidContactBody), | 38 | .custom(isValidContactBody), |
41 | 39 | ||
42 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 40 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
43 | logger.debug('Checking contactAdministratorValidator parameters', { parameters: req.body }) | ||
44 | |||
45 | if (areValidationErrors(req, res)) return | 41 | if (areValidationErrors(req, res)) return |
46 | 42 | ||
47 | if (CONFIG.CONTACT_FORM.ENABLED === false) { | 43 | if (CONFIG.CONTACT_FORM.ENABLED === false) { |