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/follows.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/follows.ts')
-rw-r--r-- | server/middlewares/validators/follows.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/server/middlewares/validators/follows.ts b/server/middlewares/validators/follows.ts index 639c60c03..be98a4c04 100644 --- a/server/middlewares/validators/follows.ts +++ b/server/middlewares/validators/follows.ts | |||
@@ -50,8 +50,6 @@ const followValidator = [ | |||
50 | }) | 50 | }) |
51 | } | 51 | } |
52 | 52 | ||
53 | logger.debug('Checking follow parameters', { parameters: req.body }) | ||
54 | |||
55 | if (areValidationErrors(req, res)) return | 53 | if (areValidationErrors(req, res)) return |
56 | 54 | ||
57 | const body: ServerFollowCreate = req.body | 55 | const body: ServerFollowCreate = req.body |
@@ -73,8 +71,6 @@ const removeFollowingValidator = [ | |||
73 | .custom(value => isHostValid(value) || isRemoteHandleValid(value)), | 71 | .custom(value => isHostValid(value) || isRemoteHandleValid(value)), |
74 | 72 | ||
75 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 73 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
76 | logger.debug('Checking unfollowing parameters', { parameters: req.params }) | ||
77 | |||
78 | if (areValidationErrors(req, res)) return | 74 | if (areValidationErrors(req, res)) return |
79 | 75 | ||
80 | const serverActor = await getServerActor() | 76 | const serverActor = await getServerActor() |
@@ -103,8 +99,6 @@ const getFollowerValidator = [ | |||
103 | .custom(isValidActorHandle), | 99 | .custom(isValidActorHandle), |
104 | 100 | ||
105 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 101 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
106 | logger.debug('Checking get follower parameters', { parameters: req.params }) | ||
107 | |||
108 | if (areValidationErrors(req, res)) return | 102 | if (areValidationErrors(req, res)) return |
109 | 103 | ||
110 | let follow: MActorFollowActorsDefault | 104 | let follow: MActorFollowActorsDefault |
@@ -132,8 +126,6 @@ const getFollowerValidator = [ | |||
132 | 126 | ||
133 | const acceptFollowerValidator = [ | 127 | const acceptFollowerValidator = [ |
134 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 128 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
135 | logger.debug('Checking accept follower parameters', { parameters: req.params }) | ||
136 | |||
137 | const follow = res.locals.follow | 129 | const follow = res.locals.follow |
138 | if (follow.state !== 'pending' && follow.state !== 'rejected') { | 130 | if (follow.state !== 'pending' && follow.state !== 'rejected') { |
139 | return res.fail({ message: 'Follow is not in pending/rejected state.' }) | 131 | return res.fail({ message: 'Follow is not in pending/rejected state.' }) |
@@ -145,8 +137,6 @@ const acceptFollowerValidator = [ | |||
145 | 137 | ||
146 | const rejectFollowerValidator = [ | 138 | const rejectFollowerValidator = [ |
147 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 139 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
148 | logger.debug('Checking reject follower parameters', { parameters: req.params }) | ||
149 | |||
150 | const follow = res.locals.follow | 140 | const follow = res.locals.follow |
151 | if (follow.state !== 'pending' && follow.state !== 'accepted') { | 141 | if (follow.state !== 'pending' && follow.state !== 'accepted') { |
152 | return res.fail({ message: 'Follow is not in pending/accepted state.' }) | 142 | return res.fail({ message: 'Follow is not in pending/accepted state.' }) |