diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index 05edcd9..6d0b3a7 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -202,7 +202,7 @@ async function checkUserActiveWarning(userID: string): Promise { } async function checkInvalidFields(videoID: VideoID, userID: UserID, hashedUserID: HashedUserID - , segments: IncomingSegment[]): Promise { + , segments: IncomingSegment[], videoDurationParam: number, userAgent: string): Promise { const invalidFields = []; const errors = []; if (typeof videoID !== "string" || videoID?.length == 0) { @@ -232,6 +232,7 @@ async function checkInvalidFields(videoID: VideoID, userID: UserID, hashedUserID const permission = await canSubmit(hashedUserID, segmentPair.category); if (!permission.canSubmit) { + Logger.warn(`Rejecting submission due to lack of permissions for category ${segmentPair.category}: ${segmentPair.segment} ${hashedUserID} ${videoID} ${videoDurationParam} ${userAgent}`); invalidFields.push(`permission to submit ${segmentPair.category}`); errors.push(permission.reason); } @@ -495,7 +496,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise