As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 8972b55e authored by Igor Drozdov's avatar Igor Drozdov
Browse files

Merge branch '669-follow-up-from-update-gitlab-shell-version-to-14-25-0' into 'main'

Include error and log as Error when recovering

Closes #669

See merge request https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/825



Merged-by: default avatarIgor Drozdov <idrozdov@gitlab.com>
Approved-by: default avatarIgor Drozdov <idrozdov@gitlab.com>
Co-authored-by: default avatarAsh McKenzie <amckenzie@gitlab.com>
parents 67f57421 8a24dbb0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -132,7 +132,7 @@ func (c *connection) handleRequests(ctx context.Context, sconn *ssh.ServerConn,
// Prevent a panic in a single session from taking out the whole server
defer func() {
if err := recover(); err != nil {
ctxlog.WithField("recovered_error", err).Warn("panic handling session")
ctxlog.WithField("recovered_error", err).Error("panic handling session")
}
}()
Loading
Loading
Loading
Loading
@@ -185,7 +185,7 @@ func (s *Server) handleConn(ctx context.Context, nconn net.Conn) {
// Prevent a panic in a single connection from taking out the whole server
defer func() {
if err := recover(); err != nil {
ctxlog.Warn("panic handling session")
ctxlog.WithField("recovered_error", err).Error("panic handling session")
metrics.SliSshdSessionsErrorsTotal.Inc()
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment