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/user-subscriptions.ts | 9 --------- 1 file changed, 9 deletions(-) (limited to 'server/middlewares/validators/user-subscriptions.ts') diff --git a/server/middlewares/validators/user-subscriptions.ts b/server/middlewares/validators/user-subscriptions.ts index d9e6aa667..a76628915 100644 --- a/server/middlewares/validators/user-subscriptions.ts +++ b/server/middlewares/validators/user-subscriptions.ts @@ -3,7 +3,6 @@ import { body, param, query } from 'express-validator' import { HttpStatusCode } from '../../../shared/models/http/http-error-codes' import { areValidActorHandles, isValidActorHandle } from '../../helpers/custom-validators/activitypub/actor' import { toArray } from '../../helpers/custom-validators/misc' -import { logger } from '../../helpers/logger' import { WEBSERVER } from '../../initializers/constants' import { ActorFollowModel } from '../../models/actor/actor-follow' import { areValidationErrors } from './shared' @@ -14,8 +13,6 @@ const userSubscriptionListValidator = [ .not().isEmpty(), (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking userSubscriptionListValidator parameters', { parameters: req.query }) - if (areValidationErrors(req, res)) return return next() @@ -27,8 +24,6 @@ const userSubscriptionAddValidator = [ .custom(isValidActorHandle).withMessage('Should have a valid URI to follow (username@domain)'), (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking userSubscriptionAddValidator parameters', { parameters: req.body }) - if (areValidationErrors(req, res)) return return next() @@ -41,8 +36,6 @@ const areSubscriptionsExistValidator = [ .custom(areValidActorHandles).withMessage('Should have a valid array of URIs'), (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking areSubscriptionsExistValidator parameters', { parameters: req.query }) - if (areValidationErrors(req, res)) return return next() @@ -54,8 +47,6 @@ const userSubscriptionGetValidator = [ .custom(isValidActorHandle), async (req: express.Request, res: express.Response, next: express.NextFunction) => { - logger.debug('Checking userSubscriptionGetValidator parameters', { parameters: req.params }) - if (areValidationErrors(req, res)) return let [ name, host ] = req.params.uri.split('@') -- cgit v1.2.3