feat(backend): debug log for body content

This commit is contained in:
Alexander Zavorotynskiy 2023-04-11 12:41:52 +02:00 committed by Delirium
parent 8361b007b7
commit 2a9c64ef16

View file

@ -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)