Skip to content

Commit

Permalink
Debug special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Sep 14, 2023
1 parent 66b585c commit aa62ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/outputproducer.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (o *outputProducer) processNextRead(r io.Reader, w io.Writer, appendBuffer
}

if n > 0 {
o.opts.Logger.Printf("outputProducer read %d bytes from pty, value: %s", n, snapshot[:n])
o.opts.Logger.Printf("outputProducer read %d bytes from pty, value: %#v", n, string(snapshot[:n]))
if _, err := w.Write(snapshot[:n]); err != nil {
return fmt.Errorf("could not write: %w", err)
}
Expand Down

0 comments on commit aa62ec2

Please sign in to comment.