added resize log
This commit is contained in:
parent
d2d3a6dce9
commit
ded79927c5
@ -593,6 +593,8 @@ func (con Connection) AttachServer(ctx *gin.Context) {
|
|||||||
err = con.dockerClient.ContainerResize(context.TODO(), containers[0].ID, container.ResizeOptions{Height: Command.Arguments[0].(uint), Width: Command.Arguments[1].(uint)})
|
err = con.dockerClient.ContainerResize(context.TODO(), containers[0].ID, container.ResizeOptions{Height: Command.Arguments[0].(uint), Width: Command.Arguments[1].(uint)})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed to resize terminal to %dx%d: %s", Command.Arguments[0].(uint), Command.Arguments[1].(uint), err)
|
log.Printf("Failed to resize terminal to %dx%d: %s", Command.Arguments[0].(uint), Command.Arguments[1].(uint), err)
|
||||||
|
} else {
|
||||||
|
log.Printf("Resized terminal to %dx%d", Command.Arguments[0].(uint), Command.Arguments[1].(uint))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user