From 2a9c64ef168e1b05536af3c7e46194d1d6b6c9c0 Mon Sep 17 00:00:00 2001 From: Alexander Zavorotynskiy Date: Tue, 11 Apr 2023 12:41:52 +0200 Subject: [PATCH] feat(backend): debug log for body content --- backend/internal/http/router/handlers-web.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/internal/http/router/handlers-web.go b/backend/internal/http/router/handlers-web.go index 6cbf1a5f1..7fbf457c0 100644 --- a/backend/internal/http/router/handlers-web.go +++ b/backend/internal/http/router/handlers-web.go @@ -212,6 +212,9 @@ func (e *Router) pushMessagesHandlerWeb(w http.ResponseWriter, r *http.Request) } bodySize = len(bodyBytes) + // DEBUG: print body + log.Printf("first bytes: %+v", bodyBytes[:10]) + // Send processed messages to queue as array of bytes // TODO: check bytes for nonsense crap err = e.services.Producer.Produce(e.cfg.TopicRawWeb, sessionData.ID, bodyBytes)