Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: improve logging for redis cache (#2794)

Max Deichmanndd34aad84d6c
diff --git a/web/src/features/public-api/server/apiAuth.ts b/web/src/features/public-api/server/apiAuth.ts
index 7331c3f957..deb71188ed 100644
--- a/web/src/features/public-api/server/apiAuth.ts
+++ b/web/src/features/public-api/server/apiAuth.ts
@@ -243,9 +243,6 @@ export class ApiAuthService {
// add the key to redis for future use if available, this does not throw
// only do so if the new hashkey exists already.
if (apiKey && apiKey.fastHashedSecretKey) {
- console.log(
- `Add key with id ${apiKey.id} for project ${apiKey.projectId} to redis`,
- );
await this.addApiKeyToRedis(hash, apiKey);
}
return apiKey;
diff --git a/web/src/pages/api/public/ingestion.ts b/web/src/pages/api/public/ingestion.ts
index f53dfdb503..f9e570e66a 100644
--- a/web/src/pages/api/public/ingestion.ts
+++ b/web/src/pages/api/public/ingestion.ts
@@ -142,9 +142,8 @@ export default async function handler(
res,
);
} catch (error: unknown) {
- console.error("error_handling_ingestion_event", error);
-
if (!(error instanceof UnauthorizedError)) {
+ console.error("error_handling_ingestion_event", error);
Sentry.captureException(error);
}