fix middleware logging bytes (#20624)
This commit is contained in:
parent
e4b2494bb8
commit
fb7f0b45be
@ -203,7 +203,7 @@ func parseGraphQLMutation(query string, variables map[string]interface{}) (strin
|
||||
if len(paramParts) != 2 {
|
||||
continue // Skip invalid params
|
||||
}
|
||||
paramName, paramValue := paramParts[0], paramParts[1]
|
||||
paramName, paramValue := strings.Trim(paramParts[0], " \t"), paramParts[1]
|
||||
|
||||
// Handle variable substitution
|
||||
if strings.HasPrefix(paramValue, "$") {
|
||||
|
@ -55,7 +55,7 @@ func HasuraConnectionReader(hc *common.HasuraConnection, fromHasuraToBrowserChan
|
||||
continue
|
||||
}
|
||||
|
||||
log.Tracef("received from hasura: %v", message)
|
||||
log.Tracef("received from hasura: %s", string(message))
|
||||
|
||||
handleMessageReceivedFromHasura(hc, fromHasuraToBrowserChannel, fromBrowserToHasuraChannel, message)
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ RangeLoop:
|
||||
continue
|
||||
}
|
||||
|
||||
log.Tracef("sending to hasura: %v", fromBrowserMessage)
|
||||
log.Tracef("sending to hasura: %s", string(fromBrowserMessage))
|
||||
errWrite := hc.Websocket.Write(hc.Context, websocket.MessageText, fromBrowserMessage)
|
||||
if errWrite != nil {
|
||||
if !errors.Is(errWrite, context.Canceled) {
|
||||
|
@ -53,7 +53,7 @@ func BrowserConnectionReader(
|
||||
return
|
||||
}
|
||||
|
||||
log.Tracef("received from browser: %v", message)
|
||||
log.Tracef("received from browser: %s", string(message))
|
||||
|
||||
if messageType != websocket.MessageText {
|
||||
log.Warnf("received non-text message: %v", messageType)
|
||||
|
@ -113,7 +113,7 @@ func sendBbbCoreMsgToRedis(name string, body map[string]interface{}) {
|
||||
return
|
||||
}
|
||||
|
||||
log.Tracef("JSON message sent to channel %s:\n%s\n", channelName, messageJSON)
|
||||
log.Tracef("JSON message sent to channel %s:\n%s\n", channelName, string(messageJSON))
|
||||
}
|
||||
|
||||
func SendUserGraphqlReconnectionForcedEvtMsg(sessionToken string) {
|
||||
|
Loading…
Reference in New Issue
Block a user