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

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Maxwell
2026-01-11 10:28:12 -08:00
committed by Alex Yang
parent d81c742815
commit 65ea32356e

View File

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