Skip to content

Commit

Permalink
add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
avalonche committed Jun 26, 2024
1 parent 726f1a2 commit 094bd35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func NewNullInt64(i int64) sql.NullInt64 {
func NewNullString(s string) sql.NullString {
return sql.NullString{
String: s,
Valid: true,
Valid: s != "",
}
}

Expand Down
5 changes: 4 additions & 1 deletion services/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,10 @@ func (api *RelayAPI) handleSubmitNewBlock(w http.ResponseWriter, req *http.Reque

submissionEntry, err := api.db.SaveBuilderBlockSubmission(payload, simResult.requestErr, simResult.validationErr, receivedAt, eligibleAt, simResult.wasSimulated, savePayloadToDatabase, pf, simResult.optimisticSubmission, simResult.blockValue)
if err != nil {
log.WithError(err).WithField("payload", payload).Error("saving builder block submission to database failed")
log.WithError(err).WithFields(logrus.Fields{
"payload": payload,
"simResult": simResult,
}).Error("saving builder block submission to database failed")
return
}

Expand Down

0 comments on commit 094bd35

Please sign in to comment.