Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(auth): log cache key in acuc update error

Gergő Móricz5e8ef4954e76
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 130944706..fc98dc70d 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -64,7 +64,7 @@ export async function setCachedACUC(api_key: string, acuc: AuthCreditUsageChunk
await setValue(cacheKeyACUC, JSON.stringify(acuc), 600, true);
});
} catch (error) {
- Logger.error(`Error updating cached ACUC: ${error}`);
+ Logger.error(`Error updating cached ACUC ${cacheKeyACUC}: ${error}`);
Sentry.captureException(error);
}
}