more logs!
This commit is contained in:
parent
6158387a38
commit
6c944ce6a7
@ -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])
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user