Skip to content

Commit 87081a2

Browse files
better logging of errors for failed request (#26)
1 parent bf17e4a commit 87081a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/services/remote_signer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (rs *RemoteSigner) SignUnbondingTransaction(req *SignRequest) (*PubKeySigPa
4545
)
4646

4747
if err != nil {
48-
return nil, err
48+
return nil, fmt.Errorf("request to coventant %s, with url:%s, failed: %w", pkStr, url, err)
4949
}
5050

5151
return &PubKeySigPair{

internal/services/unbonding_pipeline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (up *UnbondingPipeline) requestSigFromCovenant(req *SignRequest, resultChan
184184
// TODO record metrics
185185
up.logger.Error("failed to get signatures from covenant",
186186
"signer_pk", pkStr,
187-
"error", res.Err)
187+
"error", err)
188188

189189
res.Err = err
190190
} else {

0 commit comments

Comments
 (0)