only logging with psas path

This commit is contained in:
Miodec 2022-03-17 01:10:15 +01:00
parent d613f9a0f3
commit 0e1d151112

View file

@ -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();