Skip to content

Commit 8ce311f

Browse files
fix(server/api): add logger to context in tool invoke handler (#891)
1 parent 86227e3 commit 8ce311f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎internal/server/api.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func toolGetHandler(s *Server, w http.ResponseWriter, r *http.Request) {
133133
func toolInvokeHandler(s *Server, w http.ResponseWriter, r *http.Request) {
134134
ctx, span := s.instrumentation.Tracer.Start(r.Context(), "toolbox/server/tool/invoke")
135135
r = r.WithContext(ctx)
136+
ctx = util.WithLogger(r.Context(), s.logger)
136137

137138
toolName := chi.URLParam(r, "toolName")
138139
s.logger.DebugContext(ctx, fmt.Sprintf("tool name: %s", toolName))

0 commit comments

Comments
 (0)