Skip to content

Commit

Permalink
signalmeow: adjust raw data logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 3, 2024
1 parent e36642b commit bf63aa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/signalmeow/receiving.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ func (cli *Client) handleDecryptedResult(
}

content := result.Content
log.Trace().Any("raw_data", content).Msg("Raw event data")

name, _ := result.SenderAddress.Name()
deviceId, _ := result.SenderAddress.DeviceID()
log.Trace().Any("raw_data", content).Str("sender", name).Uint("sender_device", deviceId).Msg("Raw event data")
newLog := log.With().
Str("sender_name", name).
Uint("sender_device_id", deviceId).
Expand Down
2 changes: 1 addition & 1 deletion pkg/signalmeow/sending.go
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ func (cli *Client) sendContent(
Logger()
ctx = log.WithContext(ctx)
printContentFieldString(ctx, content, "Outgoing message")
log.Trace().Any("raw_content", content).Msg("Raw data of outgoing message")
log.Trace().Any("raw_content", content).Stringer("recipient", recipient).Msg("Raw data of outgoing message")

// If it's a data message, add our profile key
if content.DataMessage != nil {
Expand Down

0 comments on commit bf63aa1

Please sign in to comment.