From 87ceed05facbd02221083a8ed67f4ddbc2d6ff09 Mon Sep 17 00:00:00 2001 From: Fabio Massaioli Date: Tue, 25 Feb 2025 03:33:56 +0100 Subject: [PATCH] Fix logging bug in call message processor --- v3/pkg/application/messageprocessor_call.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v3/pkg/application/messageprocessor_call.go b/v3/pkg/application/messageprocessor_call.go index 5d7558cb6..dc25d375c 100644 --- a/v3/pkg/application/messageprocessor_call.go +++ b/v3/pkg/application/messageprocessor_call.go @@ -151,7 +151,9 @@ func (m *MessageProcessor) processCallMethod(method int, rw http.ResponseWriter, // Prepare args for logging. This should never fail since json.Unmarshal succeeded before. jsonArgs, _ := json.Marshal(options.Args) var jsonResult []byte - defer m.Info("Binding call complete:", "id", *callID, "method", boundMethod, "args", string(jsonArgs), "result", string(jsonResult)) + defer func() { + m.Info("Binding call complete:", "id", *callID, "method", boundMethod, "args", string(jsonArgs), "result", string(jsonResult)) + }() // Set the context values for the window if window != nil {