Skip to content

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

chore: reduce auth logging (#3652)

Max Deichmann7cc5a9e229df
diff --git a/web/src/features/public-api/server/apiAuth.ts b/web/src/features/public-api/server/apiAuth.ts
index 00d6f3064b..aa793c2040 100644
--- a/web/src/features/public-api/server/apiAuth.ts
+++ b/web/src/features/public-api/server/apiAuth.ts
@@ -217,10 +217,17 @@ export class ApiAuthService {
};
}
} catch (error: unknown) {
- logger.error(
- `Error verifying auth header: ${error instanceof Error ? error.message : null}`,
- error,
- );
+ if (
+ !(
+ error instanceof Error &&
+ error.message.includes("Invalid credentials")
+ )
+ ) {
+ logger.error(
+ `Error verifying auth header: ${error instanceof Error ? error.message : null}`,
+ error,
+ );
+ }
if (isPrismaException(error)) {
throw error;