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/account.ts | 5 ----- 1 file changed, 5 deletions(-) (limited to 'server/middlewares/validators/account.ts') diff --git a/server/middlewares/validators/account.ts b/server/middlewares/validators/account.ts index a7534ced5..551f67d61 100644 --- a/server/middlewares/validators/account.ts +++ b/server/middlewares/validators/account.ts @@ -1,7 +1,6 @@ import express from 'express' import { param } from 'express-validator' import { isAccountNameValid } from '../../helpers/custom-validators/accounts' -import { logger } from '../../helpers/logger' import { areValidationErrors, doesAccountNameWithHostExist, doesLocalAccountNameExist } from './shared' const localAccountValidator = [ @@ -9,8 +8,6 @@ const localAccountValidator = [ .custom(isAccountNameValid), async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking localAccountValidator parameters', { parameters: req.params }) - if (areValidationErrors(req, res)) return if (!await doesLocalAccountNameExist(req.params.name, res)) return @@ -23,8 +20,6 @@ const accountNameWithHostGetValidator = [ .exists(), async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking accountsNameWithHostGetValidator parameters', { parameters: req.params }) - if (areValidationErrors(req, res)) return if (!await doesAccountNameWithHostExist(req.params.accountName, res)) return -- cgit v1.2.3