Skip to content

Commit

Permalink
remove chatty logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sawka committed May 2, 2024
1 parent 5ad6a80 commit d3eac06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion wavesrv/cmd/main-server.go
Expand Up @@ -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{}
Expand Down
8 changes: 0 additions & 8 deletions wavesrv/pkg/remote/remote.go
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d3eac06

Please sign in to comment.