From 503d078b7832b1e34b7572ea6daa0a0567cd1c03 Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 4 Feb 2026 00:15:27 -0700 Subject: [PATCH] comment logs --- src/adapt.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/adapt.go b/src/adapt.go index 8805aad..4d9e755 100755 --- a/src/adapt.go +++ b/src/adapt.go @@ -34,7 +34,7 @@ func adapt(ctx context.Context, config Config, conn net.Conn) error { } var reply []byte if err := config.WithConn(hashKey, func(forwardConn net.Conn) error { - log.Printf("forwarding %q", raw) + //log.Printf("forwarding %q", raw) written := 0 for written < len(raw) { @@ -46,9 +46,9 @@ func adapt(ctx context.Context, config Config, conn net.Conn) error { } replyer := bufio.NewReader(forwardConn) - log.Printf("reading reply to %q", raw) + //log.Printf("reading reply to %q", raw) reply, _, err = readMessage(replyer) - log.Printf("read reply %q", raw) + //log.Printf("read reply %q", raw) return err }); err != nil { return true, err @@ -61,7 +61,7 @@ func adapt(ctx context.Context, config Config, conn net.Conn) error { return true, err } written += more - log.Printf("replied %v of %v...", written, len(reply)) + //log.Printf("replied %v of %v...", written, len(reply)) } } @@ -114,7 +114,7 @@ func _readMessage(reader *bufio.Reader) ([]byte, []any, error) { if err != nil { return w.Bytes(), nil, fmt.Errorf("num not a num in %q: %q: %w", w.Bytes(), firstLine, err) } - log.Printf("reading %v+2 bytes for bulk string", n) + //log.Printf("reading %v+2 bytes for bulk string", n) nextLine := make([]byte, n+2) nAt := 0 for nAt < n+2 {