diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2021-10-20 11:33:48 +0300 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2021-10-20 12:02:09 +0300 |
commit | f9f5423cf8d65c97d42991e218b990e5132fe293 (patch) | |
tree | 731fd7046ef7b76d55241abc0d4a48e114e4d0ad | |
parent | 9dcfcd3a1d3001fb87b6e807f7fed31a05f509b2 (diff) | |
download | gitlab-shell-f9f5423cf8d65c97d42991e218b990e5132fe293.tar.gz |
Log SSL_CERT_DIR when it's configured
-rw-r--r-- | internal/config/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 5185736..cbaf6d1 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -14,6 +14,8 @@ import ( "gitlab.com/gitlab-org/gitlab-shell/client" "gitlab.com/gitlab-org/gitlab-shell/internal/metrics" + + "gitlab.com/gitlab-org/labkit/log" ) const ( @@ -93,6 +95,8 @@ func (sc *ServerConfig) GracePeriod() time.Duration { func (c *Config) ApplyGlobalState() { if c.SslCertDir != "" { + log.WithFields(log.Fields{"ssl_cert_dir": c.SslCertDir}).Info("SSL_CERT_DIR is configured") + os.Setenv("SSL_CERT_DIR", c.SslCertDir) } } |