diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2021-10-06 13:50:26 +0000 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2021-10-06 13:50:26 +0000 |
commit | 83f76b494051434470f2e6a4c2ebe19a18fc22e8 (patch) | |
tree | 03d3a04404189b41dc959480ccd6fc0d9d1cec30 | |
parent | 2dafe37c77233152b55e1c5d893a81a9cffd2618 (diff) | |
parent | b33de0edb56f99f0fdcb7e10ab2a1fa0ef1e4d69 (diff) | |
download | gitlab-shell-83f76b494051434470f2e6a4c2ebe19a18fc22e8.tar.gz |
Merge branch 'fix-logging-channel-type' into 'main'
Fix logging channel type
See merge request gitlab-org/gitlab-shell!534
-rw-r--r-- | internal/sshd/connection.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/sshd/connection.go b/internal/sshd/connection.go index c8f5c00..f6d8fb5 100644 --- a/internal/sshd/connection.go +++ b/internal/sshd/connection.go @@ -34,7 +34,7 @@ func (c *connection) handle(ctx context.Context, chans <-chan ssh.NewChannel, ha defer metrics.SshdConnectionDuration.Observe(time.Since(c.begin).Seconds()) for newChannel := range chans { - ctxlog.WithField("channel_type", newChannel.ChannelType).Info("connection: handle: new channel requested") + ctxlog.WithField("channel_type", newChannel.ChannelType()).Info("connection: handle: new channel requested") if newChannel.ChannelType() != "session" { ctxlog.Info("connection: handle: unknown channel type") newChannel.Reject(ssh.UnknownChannelType, "unknown channel type") |