Skip to content

Commit fd5e3eb

Browse files
committed
make logging simpler
1 parent d31a5e8 commit fd5e3eb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sdk/Client.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ package sdk
22

33
import (
44
"bytes"
5-
"encoding/hex"
65
"fmt"
76
"halsecur/sdk/payload"
87
"net"
9-
"strings"
108
"time"
119

1210
"github.com/sirupsen/logrus"
@@ -83,7 +81,7 @@ func (c *Client) receiveResponse(timeout time.Duration) (*TransmissionContainer,
8381
}
8482

8583
c.log.Debugf("Length of received bytes: %d", size)
86-
c.log.Debugf("Response bytes: %s", strings.ToUpper(hex.EncodeToString(receivedBytesTmp[0:size])))
84+
c.log.Debugf("Response bytes: %X", receivedBytesTmp[0:size])
8785

8886
buffer := new(bytes.Buffer)
8987
_, err = buffer.Write(receivedBytesTmp[0:size])

0 commit comments

Comments
 (0)