mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Add logs
This commit is contained in:
@@ -58,6 +58,8 @@ export async function postBranding(req: Request, res: Response) {
|
||||
|
||||
const permission = await canSubmitDeArrow(hashedUserID);
|
||||
if (!permission.canSubmit) {
|
||||
Logger.warn(`New user trying to submit dearrow: ${userID} ${videoID} ${title} ${req.headers["user-agent"]}`);
|
||||
|
||||
res.status(403).send(permission.reason);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -511,6 +511,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise<Res
|
||||
|
||||
const permission = await canSubmitGlobal(userID);
|
||||
if (!permission.canSubmit) {
|
||||
Logger.warn(`New user trying to submit: ${userID} ${videoID} ${videoDurationParam} ${userAgent} ${req.headers["user-agent"]}`);
|
||||
return res.status(403).send(permission.reason);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user