From d3eac06d7ab46755a8faac2c8cf233a378c31c35 Mon Sep 17 00:00:00 2001 From: sawka Date: Thu, 2 May 2024 15:45:27 -0700 Subject: [PATCH] remove chatty logging --- wavesrv/cmd/main-server.go | 1 - wavesrv/pkg/remote/remote.go | 8 -------- 2 files changed, 9 deletions(-) diff --git a/wavesrv/cmd/main-server.go b/wavesrv/cmd/main-server.go index ce1d9861..f27d7e4d 100644 --- a/wavesrv/cmd/main-server.go +++ b/wavesrv/cmd/main-server.go @@ -733,7 +733,6 @@ func HandleRunEphemeralCommand(w http.ResponseWriter, r *http.Request) { WriteJsonError(w, fmt.Errorf(ErrorDecodingJson, err)) return } - log.Printf("Running ephemeral command: %v\n", commandPk) if commandPk.EphemeralOpts == nil { commandPk.EphemeralOpts = &ephemeral.EphemeralRunOpts{} diff --git a/wavesrv/pkg/remote/remote.go b/wavesrv/pkg/remote/remote.go index 0dfb13b3..fd502e6f 100644 --- a/wavesrv/pkg/remote/remote.go +++ b/wavesrv/pkg/remote/remote.go @@ -1930,10 +1930,6 @@ func RunCommand(ctx context.Context, rcOpts RunCommandOpts, runPacket *packet.Ru return nil, nil, fmt.Errorf("runPacket.StatePtr should not be set, it is set in RunCommand") } - if rcOpts.EphemeralOpts != nil { - log.Printf("[info] running ephemeral command ck: %s\n", runPacket.CK) - } - // pending state command logic // if we are currently running a command that can change the state, we need to wait for it to finish if rcOpts.StatePtr == nil { @@ -2186,9 +2182,6 @@ func (msh *MShellProc) HandleFeInput(inputPk *scpacket.FeInputPacketType) error func (msh *MShellProc) AddRunningCmd(rct *RunCmdType) { msh.Lock.Lock() defer msh.Lock.Unlock() - if rct.EphemeralOpts != nil { - log.Printf("[info] adding ephemeral running command: %s\n", rct.CK) - } msh.RunningCmds[rct.RunPacket.CK] = rct } @@ -2596,7 +2589,6 @@ func (msh *MShellProc) handleDataPacket(rct *RunCmdType, dataPk *packet.DataPack return } if rct.EphemeralOpts != nil { - log.Printf("ephemeral data packet: %s\n", dataPk.CK) // Write to the response writer if it's set if len(realData) > 0 && rct.EphemeralOpts.ExpectsResponse { switch dataPk.FdNum {