summaryrefslogtreecommitdiff
path: root/cmd/gitlab-shell-authorized-keys-check/main.go
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2021-08-03 15:07:13 +0100
committerNick Thomas <nick@gitlab.com>2021-08-04 08:12:54 +0100
commit1274858f5565d59dcc36813964334a21fffc369b (patch)
treefc3c6b211c2272e7d3b1b1c206b55bf581380cd8 /cmd/gitlab-shell-authorized-keys-check/main.go
parent00735e0bbf51e28bcec5086d9d0f62999d19d2c5 (diff)
downloadgitlab-shell-1274858f5565d59dcc36813964334a21fffc369b.tar.gz
Switch to labkit for logging system setup
- We start supporting the "color" format for logs. - We now respond to SIGHUP by reopening the log file. - We now respect the log format when no log filename is specified. Output to syslog in the event of logging system setup is preserved in OpenSSH mode. Changelog: added
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 {