增强后端 TypeScript 严格类型检查
This commit is contained in:
@@ -43,7 +43,7 @@ function resolveRequestId(req: Request): string {
|
||||
}
|
||||
|
||||
function shouldSkipAccessLog(originalUrl: string, statusCode: number): boolean {
|
||||
const pathname = String(originalUrl || "").split("?")[0];
|
||||
const pathname = String(originalUrl || "").split("?")[0] || "";
|
||||
return (
|
||||
["/health", "/health/live", "/health/ready"].includes(pathname) &&
|
||||
Number(statusCode) < 400
|
||||
|
||||
Reference in New Issue
Block a user