summaryrefslogtreecommitdiff
path: root/cmd/gitlab-shell-authorized-keys-check/main.go
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2021-08-04 08:43:43 +0000
committerPatrick Bajao <ebajao@gitlab.com>2021-08-04 08:43:43 +0000
commit7b44ce1d4a0716d27acabb4f826eb5613dade082 (patch)
tree51a9edeb92dbb8743ae1927f62d8d86cde0e861a /cmd/gitlab-shell-authorized-keys-check/main.go
parentdf0138b5f0f8f998a832c6c063128f56d1953604 (diff)
parent1274858f5565d59dcc36813964334a21fffc369b (diff)
downloadgitlab-shell-7b44ce1d4a0716d27acabb4f826eb5613dade082.tar.gz
Merge branch '499-use-labkit-logging-initialize' into 'main'
Switch to labkit for logging system setup Closes #271 See merge request gitlab-org/gitlab-shell!504
Diffstat (limited to 'cmd/gitlab-shell-authorized-keys-check/main.go')
-rw-r--r--cmd/gitlab-shell-authorized-keys-check/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/gitlab-shell-authorized-keys-check/main.go b/cmd/gitlab-shell-authorized-keys-check/main.go
index 0fc7ecc..81937a7 100644
--- a/cmd/gitlab-shell-authorized-keys-check/main.go
+++ b/cmd/gitlab-shell-authorized-keys-check/main.go
@@ -32,7 +32,8 @@ func main() {
os.Exit(1)
}
- logger.Configure(config)
+ logCloser := logger.Configure(config)
+ defer logCloser.Close()
cmd, err := command.New(executable, os.Args[1:], sshenv.Env{}, config, readWriter)
if err != nil {