Skip to content

Commit 48a8c2e

Browse files
committed
add more paths to ignore
1 parent b148335 commit 48a8c2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/services/webapp/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { logger } from "@/utils.js";
88

99
const log = logger("WebApp");
1010

11+
const PATH_IGNORE = ["/server-status","/discord/guild/emojis", "/gmod/errors"];
12+
1113
export class WebApp extends Service {
1214
name = "WebApp";
1315
config = config;
@@ -22,7 +24,7 @@ export class WebApp extends Service {
2224
logger: log,
2325
base: undefined,
2426
level: process.env.LOG_LEVEL || "info",
25-
autoLogging: { ignore: req => req.url.startsWith("/server-status") },
27+
autoLogging: { ignore: req => PATH_IGNORE.includes(req.path)},
2628
})
2729
);
2830

0 commit comments

Comments
 (0)