Skip to content

Commit

Permalink
perf: 修复错误日志记录
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Feb 28, 2024
1 parent 613ca76 commit 515a6b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/handler/server_ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func (s *Server) proxyAssetCommand(sess ssh.Session, sshClient *srvconn.SSHClien

defer func() {
if err2 := s.jmsService.SessionFinished(respSession.ID, modelCommon.NewNowUTCTime()); err2 != nil {
logger.Errorf("Create tunnel session err: %s", err)
logger.Errorf("Create tunnel session err: %s", err2)
}
session.RemoveSession(traceSession)
}()
Expand Down Expand Up @@ -491,7 +491,7 @@ func (s *Server) proxyVscodeShell(sess ssh.Session, vsReq *vscodeReq, sshClient
session.AddSession(traceSession)
defer func() {
if err2 := s.jmsService.SessionFinished(respSession.ID, modelCommon.NewNowUTCTime()); err2 != nil {
logger.Errorf("Create tunnel session err: %s", err)
logger.Errorf("Create tunnel session err: %s", err2)
}
session.RemoveSession(traceSession)
}()
Expand Down

0 comments on commit 515a6b0

Please sign in to comment.