Skip to content

Commit

Permalink
chore: update the logging content in the send packet method
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Mar 27, 2024
1 parent 5334e04 commit ccfcccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/rlpa/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ func (c *Conn) Send(tag byte, data []byte) error {
defer c.lock.Unlock()
packet := c.pack(tag, data)
if tag == TagAPDU {
slog.Info("sending data", "tag", tag, "packet", hex.EncodeToString(packet))
slog.Info("sending data", "id", c.Id, "tag", tag, "packet", hex.EncodeToString(packet))
} else {
slog.Info("sending data", "tag", tag, "data", string(data))
slog.Info("sending data", "id", c.Id, "tag", tag, "data", string(data))
}
_, err := c.Conn.Write(packet)
return err
Expand Down

0 comments on commit ccfcccf

Please sign in to comment.