Skip to content

Commit

Permalink
log command before sending to broker
Browse files Browse the repository at this point in the history
  • Loading branch information
Prabhudas Garule committed Oct 25, 2023
1 parent fedeeda commit 17ebfeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pulsar/internal/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ func (c *connection) writeCommand(cmd *pb.BaseCommand) {
panic("Protobuf serialization error")
}

// log the command before sending to broker, it will be helpful for debugging in case of issues
c.log.Debugf("Writing command: %v", cmd)

c.writeBuffer.WrittenBytes(cmdSize)
c.internalWriteData(c.writeBuffer)
}
Expand Down

0 comments on commit 17ebfeb

Please sign in to comment.