mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
only logging with psas path
This commit is contained in:
parent
d613f9a0f3
commit
0e1d151112
1 changed files with 4 additions and 2 deletions
|
|
@ -47,8 +47,10 @@ function addApiRoutes(app: Application): void {
|
|||
return;
|
||||
}
|
||||
|
||||
const clientVersion = req.headers["client-version"];
|
||||
recordClientVersion(clientVersion?.toString() ?? "unknown");
|
||||
if (req.path === "/psas") {
|
||||
const clientVersion = req.headers["client-version"];
|
||||
recordClientVersion(clientVersion?.toString() ?? "unknown");
|
||||
}
|
||||
|
||||
requestsProcessed++;
|
||||
next();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue