Skip to content

Commit

Permalink
当err为nil时,输出错误原因 (#105)
Browse files Browse the repository at this point in the history
当err为nil时,输出错误原因

Signed-off-by: tianxuanhong <[email protected]>
  • Loading branch information
tianxuanhong authored Nov 22, 2020
1 parent 2bd4d71 commit bc6b0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/infra/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (p *Proposer) Start(signed, processed chan *Elements, done <-chan struct{},
if r == nil {
p.logger.Errorf("Err processing proposal: %s, status: unknown, addr: %s \n", err, p.Addr)
} else {
p.logger.Errorf("Err processing proposal: %s, status: %d, addr: %s \n", err, r.Response.Status, p.Addr)
p.logger.Errorf("Err processing proposal: %s, status: %d, message: %s, addr: %s \n", err, r.Response.Status, r.Response.Message, p.Addr)
}
continue
}
Expand Down

0 comments on commit bc6b0a1

Please sign in to comment.