Skip to content

Commit

Permalink
[goreleaser] more notary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Oct 6, 2023
1 parent 7b882a0 commit e328ef3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agents/agents/notary/notary.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,17 @@ func (n *Notary) loadSummitMyLatestStates(parentCtx context.Context) {
span.AddEvent("GetLatestAgentState failed", trace.WithAttributes(
attribute.String("err", err.Error()),
))
fmt.Printf("error getting myLatestState: %v\n", err)
continue
}
fmt.Printf("got myLatestState: %v with nonce %v\n", myLatestState, myLatestState.Nonce())
if myLatestState != nil && myLatestState.Nonce() > uint32(0) {
n.summitMyLatestStates[originID] = myLatestState
span.AddEvent("Got my summit latest state", trace.WithAttributes(
attribute.Int("nonce", int(myLatestState.Nonce())),
attribute.Int("originID", int(originID)),
))
fmt.Printf("Set summitMyLatestStates for origin %d with nonce %v\n", originID, myLatestState.Nonce())
}

span.End()
Expand Down

0 comments on commit e328ef3

Please sign in to comment.