From 4ea0dd715deb6485a43b2527001380bf6e1b903d Mon Sep 17 00:00:00 2001 From: Damon To Date: Wed, 27 Mar 2024 10:05:33 +0800 Subject: [PATCH] chore: improve the logging content of sending data --- internal/rlpa/conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rlpa/conn.go b/internal/rlpa/conn.go index 6b1f3c5..8d1f3e2 100644 --- a/internal/rlpa/conn.go +++ b/internal/rlpa/conn.go @@ -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", "id", c.Id, "tag", tag, "packet", hex.EncodeToString(packet)) + slog.Info("sending data to", "id", c.Id, "tag", tag, "packet", hex.EncodeToString(packet)) } else { - slog.Info("sending data", "id", c.Id, "tag", tag, "data", string(data)) + slog.Info("sending data to", "id", c.Id, "tag", tag, "data", string(data)) } _, err := c.Conn.Write(packet) return err