Skip to content

Commit

Permalink
Log raw send response data
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed May 30, 2024
1 parent c1c9455 commit 7cf98e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libgm/session_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ func (s *SessionHandler) receiveResponse(msg *IncomingRPCMessage) bool {
}
}
evt.Msg("Received response")
if msg.Message.Action == gmproto.ActionType_SEND_MESSAGE {
s.client.Logger.Debug().
Str("send_response_data", base64.StdEncoding.EncodeToString(msg.DecryptedData)).
Msg("Message send response data")
}
ch <- msg
return true
}
Expand Down

0 comments on commit 7cf98e4

Please sign in to comment.