Skip to content

Commit

Permalink
fix(client): use tracer level trace and not info
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Dec 3, 2022
1 parent 42c2c5c commit ee3d101
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (self *UnixRPC) SetEncoder(encoder encoder.JSONEncoder) {
func (self *UnixRPC) encodeToBytes(p any) []byte {
buf, err := self.encoder.EncodeToByte(p)
if err != nil {
self.tracer.Infof("%s", err)
self.tracer.Tracef("%s", err)
panic(err)
}
return buf
Expand All @@ -52,9 +52,9 @@ func (self *UnixRPC) decodeToResponse(s []byte) (*jsonrpcv2.Response[*string], e
if len(s) == 0 {
return &r, nil
}
self.tracer.Infof("cln4go: buffer pre dencoding %s", string(s))
self.tracer.Tracef("cln4go: buffer pre dencoding %s", string(s))
if err := self.encoder.DecodeFromBytes(s, &r); err != nil {
self.tracer.Infof("%s", err)
self.tracer.Tracef("%s", err)
return nil, err
}
return &r, nil
Expand Down Expand Up @@ -89,7 +89,7 @@ func (instance UnixRPC) Call(method string, data map[string]any) (map[string]any
scanner.Buffer(buffer, bufio.MaxScanTokenSize*4)
for scanner.Scan() {
if line := scanner.Bytes(); len(line) > 0 {
instance.tracer.Info(string(line))
instance.tracer.Trace(string(line))
buffer = append(buffer, line...)
} else {
break
Expand Down

0 comments on commit ee3d101

Please sign in to comment.