From 20ede520532e7950f059a6d2c8efa6eba99d822d Mon Sep 17 00:00:00 2001 From: ACoolName Date: Mon, 27 May 2024 21:26:48 +0300 Subject: [PATCH] more logs --- servers/servers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/servers.go b/servers/servers.go index 6f7173c..2359926 100644 --- a/servers/servers.go +++ b/servers/servers.go @@ -547,7 +547,6 @@ func (con Connection) AttachServer(ctx *gin.Context) { time.Sleep(500) hijacked, err = con.dockerClient.ContainerAttach(context.TODO(), containers[0].ID, container.AttachOptions{Stream: true, Stdin: true, Stdout: true, Stderr: true, Logs: false}) if err != nil { - log.Printf("Failed to re-attach container %s", err) stop = true break } @@ -568,6 +567,7 @@ func (con Connection) AttachServer(ctx *gin.Context) { err := ws.ReadJSON(&command) if err != nil { + fmt.Printf("Failed to read from websocket: %s", err) command.CommandType = "close" websocketRead <- command break