Skip to content

Commit

Permalink
Remove some unnecessary debug stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Jul 12, 2024
1 parent 54a14af commit 0373966
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ The journal entry at position %d was:
- In the user code: type: %T, message: %s
- In the replayed messages: type: %T, message %s`,
typ.entryIndex, typ.expectedEntry, string(expected), typ.actualEntry, string(actual)),
Description: string(debug.Stack()),
RelatedEntryIndex: &typ.entryIndex,
RelatedEntryType: wire.MessageType(typ.actualEntry).UInt32(),
},
Expand All @@ -270,7 +269,6 @@ The journal entry at position %d was:
ErrorMessage: protocol.ErrorMessage{
Code: uint32(errors.ErrProtocolViolation),
Message: typ.err.Error(),
Description: string(debug.Stack()),
RelatedEntryIndex: &typ.entryIndex,
RelatedEntryType: wire.MessageType(typ.entry).UInt32(),
},
Expand All @@ -284,7 +282,6 @@ The journal entry at position %d was:
ErrorMessage: protocol.ErrorMessage{
Code: uint32(restate.ErrorCode(typ.err)),
Message: typ.err.Error(),
Description: string(debug.Stack()),
RelatedEntryIndex: &typ.entryIndex,
RelatedEntryType: wire.AwakeableEntryMessageType.UInt32(),
},
Expand Down Expand Up @@ -314,9 +311,8 @@ The journal entry at position %d was:
// don't check for error here, most likely we will fail to send if we are in such a bad state
_ = m.protocol.Write(wire.ErrorMessageType, &wire.ErrorMessage{
ErrorMessage: protocol.ErrorMessage{
Code: uint32(restate.ErrorCode(typ.Err)),
Message: fmt.Sprintf("problem reading completions: %v", typ.Err),
Description: string(debug.Stack()),
Code: uint32(restate.ErrorCode(typ.Err)),
Message: fmt.Sprintf("problem reading completions: %v", typ.Err),
},
})
}
Expand Down

0 comments on commit 0373966

Please sign in to comment.