🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
infra: reduce log amount for 401 (#2792)
Max Deichmann805a91c9f866
diff --git a/web/src/features/public-api/server/apiAuth.ts b/web/src/features/public-api/server/apiAuth.tsindex 0a9b0d3dd2..7331c3f957 100644--- a/web/src/features/public-api/server/apiAuth.ts+++ b/web/src/features/public-api/server/apiAuth.ts@@ -174,7 +174,9 @@ export class ApiAuthService {};}} catch (error: unknown) {- console.error("Error verifying auth header: ", error);+ console.error(+ `Error verifying auth header: ${error instanceof Error ? error.message : null}`,+ );if (isPrismaException(error)) {throw error;@@ -222,16 +224,12 @@ export class ApiAuthService {if (redisApiKey === API_KEY_NON_EXISTENT) {Sentry.metrics.increment("api_key_cache_hit");- console.log(`Found flag for non existing key in redis.`);throw new Error("Invalid credentials");}// if we found something, return the object.if (redisApiKey) {Sentry.metrics.increment("api_key_cache_hit");- console.log(- `Found key with id ${redisApiKey.id} for project ${redisApiKey.projectId} in redis`,- );return redisApiKey;}