diff options
author | Stan Hu <stanhu@gmail.com> | 2020-03-07 00:46:26 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2020-03-10 00:41:24 -0700 |
commit | 488102039cb5e79114954ad91663ce28c99153c8 (patch) | |
tree | 808256b23022449477aa8e17ad3865ba6a3213b6 /cmd/gitlab-shell-authorized-keys-check | |
parent | b920520599142435ce06ad155099544adc923618 (diff) | |
download | gitlab-shell-sh-log-http-requests.tar.gz |
Log internal HTTP requestssh-log-http-requests
This restores the previous behavior of logging the success and failures
of internal HTTP requests.
Part of https://gitlab.com/gitlab-org/gitlab/issues/207916
Diffstat (limited to 'cmd/gitlab-shell-authorized-keys-check')
-rw-r--r-- | cmd/gitlab-shell-authorized-keys-check/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/gitlab-shell-authorized-keys-check/main.go b/cmd/gitlab-shell-authorized-keys-check/main.go index 8cc0bc8..4b3949c 100644 --- a/cmd/gitlab-shell-authorized-keys-check/main.go +++ b/cmd/gitlab-shell-authorized-keys-check/main.go @@ -9,6 +9,7 @@ import ( "gitlab.com/gitlab-org/gitlab-shell/internal/config" "gitlab.com/gitlab-org/gitlab-shell/internal/console" "gitlab.com/gitlab-org/gitlab-shell/internal/executable" + "gitlab.com/gitlab-org/gitlab-shell/internal/logger" ) func main() { @@ -30,6 +31,8 @@ func main() { os.Exit(1) } + logger.Configure(config) + cmd, err := command.New(executable, os.Args[1:], config, readWriter) if err != nil { // For now this could happen if `SSH_CONNECTION` is not set on |