From f9f5423cf8d65c97d42991e218b990e5132fe293 Mon Sep 17 00:00:00 2001 From: Igor Drozdov Date: Wed, 20 Oct 2021 11:33:48 +0300 Subject: Log SSL_CERT_DIR when it's configured --- internal/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal') 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) } } -- cgit v1.2.1