Skip to content

Commit

Permalink
[issue 490] Add error log when schema encode failed. (apache#571)
Browse files Browse the repository at this point in the history
* Add error log when schema encode failed.

* format code
  • Loading branch information
stulzq authored Jul 21, 2021
1 parent 1dfb8fd commit bbee640
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pulsar/producer_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ func (p *partitionProducer) internalSend(request *sendRequest) {
if p.options.Schema != nil {
schemaPayload, err = p.options.Schema.Encode(msg.Value)
if err != nil {
p.log.WithError(err).Errorf("Schema encode message failed %s", msg.Value)
return
}
}
Expand Down

0 comments on commit bbee640

Please sign in to comment.