Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ func (p *BasicPortForwarding) startLocalConn(log log.T) (err error) {
return err
}
log.Infof("Connection accepted for session %s.", p.sessionId)
fmt.Printf("Connection accepted for session %s.\n", p.sessionId)

p.listener = &listener
p.stream = &tcpConn
Expand All @@ -159,7 +158,6 @@ func (p *BasicPortForwarding) startLocalListener(log log.T, portNumber string) (
}

log.Info(displayMessage)
fmt.Println(displayMessage)
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (p *MuxPortForwarding) initialize(log log.T, agentVersion string) (err erro
smuxConfig := smux.DefaultConfig()
if version.DoesAgentSupportDisableSmuxKeepAlive(log, agentVersion) {
// Disable smux KeepAlive or else it breaks Session Manager idle timeout.
smuxConfig.KeepAliveDisabled = true
smuxConfig.KeepAliveDisabled = false
}
if muxSession, err := smux.Client(muxConn, smuxConfig); err != nil {
return err
Expand Down Expand Up @@ -252,10 +252,8 @@ func (p *MuxPortForwarding) handleClientConnections(log log.T, ctx context.Conte
defer listener.Close()

log.Infof(displayMsg)
fmt.Printf(displayMsg)

log.Infof("Waiting for connections...\n")
fmt.Printf("\nWaiting for connections...\n")

var once sync.Once
for {
Expand Down
2 changes: 1 addition & 1 deletion src/sessionmanagerplugin/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func ValidateInputAndStartSession(args []string, out io.Writer) {

// Execute create data channel and start the session
func (s *Session) Execute(log log.T) (err error) {
fmt.Fprintf(os.Stdout, "\nStarting session with SessionId: %s\n", s.SessionId)
log.Infof("\nStarting session with SessionId: %s\n", s.SessionId)

// sets the display mode
s.DisplayMode = sessionutil.NewDisplayMode(log)
Expand Down