diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2021-07-27 14:52:45 +0300 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2021-07-27 17:46:11 +0300 |
commit | f6baecaa794ef85b144fa9cd05940e3f020b4a0e (patch) | |
tree | 034e4ae73aa5522a73db0506e67f567648bc507f /cmd | |
parent | f9e7ffda68192d24ff26f0d5ff7fe70e376c32f2 (diff) | |
download | gitlab-shell-f6baecaa794ef85b144fa9cd05940e3f020b4a0e.tar.gz |
Sshd: Log same correlation_id on auth keys
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gitlab-sshd/main.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/gitlab-sshd/main.go b/cmd/gitlab-sshd/main.go index d1cc84e..78690b0 100644 --- a/cmd/gitlab-sshd/main.go +++ b/cmd/gitlab-sshd/main.go @@ -68,7 +68,10 @@ func main() { ctx, finished := command.Setup("gitlab-sshd", cfg) defer finished() - server := sshd.Server{Config: cfg} + server, err := sshd.NewServer(cfg) + if err != nil { + log.WithError(err).Fatal("Failed to start GitLab built-in sshd") + } // Startup monitoring endpoint. if cfg.Server.WebListen != "" { @@ -104,6 +107,6 @@ func main() { }() if err := server.ListenAndServe(ctx); err != nil { - log.WithError(err).Fatal("Failed to start GitLab built-in sshd") + log.WithError(err).Fatal("GitLab built-in sshd failed to listen for new connections") } } |