more logs!

This commit is contained in:
ACoolName 2024-05-27 21:06:44 +03:00
parent 6158387a38
commit 6c944ce6a7

View File

@ -544,12 +544,11 @@ func (con Connection) AttachServer(ctx *gin.Context) {
}
count, err := hijacked.Reader.Read(data)
if err != nil {
log.Printf("Read from docker failed %s", errors.Unwrap(err))
stop = true
break
}
if count > 0 {
log.Println("Got ", count, " bytes: ", string(data[:count]))
containerRead <- string(data[:count])
}