Skip to content

Commit 78d7aa4

Browse files
authored
chore(api): improve logging of error in GetValidatorDashboardWithdrawals (#911)
BEDS-90
1 parent d83133d commit 78d7aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/pkg/api/data_access/vdb_withdrawals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (d *DataAccessService) GetValidatorDashboardWithdrawals(ctx context.Context
190190

191191
err = d.readerDb.SelectContext(ctx, &queryResult, withdrawalsQuery, queryParams...)
192192
if err != nil {
193-
return nil, nil, fmt.Errorf("error getting withdrawals for validators: %+v: %w", validators, err)
193+
return nil, nil, fmt.Errorf("error getting withdrawals for dashboardId: %d (%d validators): %w", dashboardId.Id, len(validators), err)
194194
}
195195

196196
if len(queryResult) == 0 {

0 commit comments

Comments
 (0)