We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b16b10b commit 906823eCopy full SHA for 906823e
internal/middleware/auth.go
@@ -2,6 +2,7 @@ package middleware
2
3
import (
4
"context"
5
+ "log/slog"
6
"net/http"
7
8
"github.com/langchain-ai/langsmith-collector-proxy/internal/config"
@@ -16,6 +17,7 @@ func Auth(cfg config.Config) func(http.Handler) http.Handler {
16
17
apiKey = cfg.DefaultAPIKey
18
}
19
if apiKey == "" {
20
+ slog.Warn("missing X-API-Key", "path", r.URL.Path)
21
http.Error(w, "missing X-API-Key", http.StatusUnauthorized)
22
return
23
0 commit comments