Skip to content

Commit d3eac06

Browse files
committed
remove chatty logging
1 parent 5ad6a80 commit d3eac06

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

wavesrv/cmd/main-server.go

-1
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,6 @@ func HandleRunEphemeralCommand(w http.ResponseWriter, r *http.Request) {
733733
WriteJsonError(w, fmt.Errorf(ErrorDecodingJson, err))
734734
return
735735
}
736-
log.Printf("Running ephemeral command: %v\n", commandPk)
737736

738737
if commandPk.EphemeralOpts == nil {
739738
commandPk.EphemeralOpts = &ephemeral.EphemeralRunOpts{}

wavesrv/pkg/remote/remote.go

-8
Original file line numberDiff line numberDiff line change
@@ -1930,10 +1930,6 @@ func RunCommand(ctx context.Context, rcOpts RunCommandOpts, runPacket *packet.Ru
19301930
return nil, nil, fmt.Errorf("runPacket.StatePtr should not be set, it is set in RunCommand")
19311931
}
19321932

1933-
if rcOpts.EphemeralOpts != nil {
1934-
log.Printf("[info] running ephemeral command ck: %s\n", runPacket.CK)
1935-
}
1936-
19371933
// pending state command logic
19381934
// if we are currently running a command that can change the state, we need to wait for it to finish
19391935
if rcOpts.StatePtr == nil {
@@ -2186,9 +2182,6 @@ func (msh *MShellProc) HandleFeInput(inputPk *scpacket.FeInputPacketType) error
21862182
func (msh *MShellProc) AddRunningCmd(rct *RunCmdType) {
21872183
msh.Lock.Lock()
21882184
defer msh.Lock.Unlock()
2189-
if rct.EphemeralOpts != nil {
2190-
log.Printf("[info] adding ephemeral running command: %s\n", rct.CK)
2191-
}
21922185
msh.RunningCmds[rct.RunPacket.CK] = rct
21932186
}
21942187

@@ -2596,7 +2589,6 @@ func (msh *MShellProc) handleDataPacket(rct *RunCmdType, dataPk *packet.DataPack
25962589
return
25972590
}
25982591
if rct.EphemeralOpts != nil {
2599-
log.Printf("ephemeral data packet: %s\n", dataPk.CK)
26002592
// Write to the response writer if it's set
26012593
if len(realData) > 0 && rct.EphemeralOpts.ExpectsResponse {
26022594
switch dataPk.FdNum {

0 commit comments

Comments
 (0)