diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-05-08 08:33:44 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-05-13 11:49:17 -0700 |
commit | b6113e2b9ea8f397e345a09335c26f953994c6f4 (patch) | |
tree | 5dfe310f20bc1b0ad5cadb84ef8416253df438ad /libpod/oci_conmon_linux.go | |
parent | d147b3ee027580dd7afdeb0fa04d990ae1d2ee91 (diff) | |
download | podman-b6113e2b9ea8f397e345a09335c26f953994c6f4.tar.gz podman-b6113e2b9ea8f397e345a09335c26f953994c6f4.tar.bz2 podman-b6113e2b9ea8f397e345a09335c26f953994c6f4.zip |
WIP V2 attach bindings and test
* Add ErrLostSync to report lost of sync when de-mux'ing stream
* Add logus.SetLevel(logrus.DebugLevel) when `go test -v` given
* Add context to debugging messages
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'libpod/oci_conmon_linux.go')
-rw-r--r-- | libpod/oci_conmon_linux.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go index d59ff18ca..d1c1a1fc2 100644 --- a/libpod/oci_conmon_linux.go +++ b/libpod/oci_conmon_linux.go @@ -1704,6 +1704,8 @@ func httpAttachTerminalCopy(container *net.UnixConn, http *bufio.ReadWriter, cid buf := make([]byte, bufferSize) for { numR, err := container.Read(buf) + logrus.Debugf("Read fd(%d) %d/%d bytes for container %s", int(buf[0]), numR, len(buf), cid) + if numR > 0 { switch buf[0] { case AttachPipeStdout: |