fix(api-key): log key verification errors (#7174)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Maxwell
2026-01-12 04:28:12 +10:00
committed by GitHub
parent e612457652
commit f81fe671ea

View File

@@ -289,6 +289,7 @@ export function verifyApiKey({
);
}
} catch (error) {
ctx.context.logger.error("Failed to validate API key:", error);
if (isAPIError(error)) {
return ctx.json({
valid: false,