From ae3825bf4e4fe23fe9e88107a9279f563ff5a6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Thu, 21 Dec 2023 18:33:20 +0100 Subject: [PATCH] fix: Remove debug print & restore console state after shell --- pkg/shell.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/shell.go b/pkg/shell.go index 4c2827d4..38180f20 100644 --- a/pkg/shell.go +++ b/pkg/shell.go @@ -37,6 +37,8 @@ func ExecShell(req *ShellRequest) { }() currentConsole := console.Current() + defer currentConsole.Reset() + if err := currentConsole.SetRaw(); err != nil { log.Fatal("error while setting up console", err) } @@ -62,7 +64,6 @@ func ExecShell(req *ShellRequest) { func createWebsocketConn(req *ShellRequest) (*websocket.Conn, error) { command, err := query.Values(req) - println("", command.Encode(), req.PodName) if err != nil { return nil, err }