Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-07-12 10:35:37 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-07-12 10:35:37 +0300
commit1a2e2229f52436bcd1c82078817884d742b1bf56 (patch)
tree3935a49f9adb11b0e757a0c2c4b0380fbcf4e019
parentd4999085ef28c03a67d2b27cf356ffa42d6195cb (diff)
-rw-r--r--app.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/app.go b/app.go
index 2bbc3d99..db9344f0 100644
--- a/app.go
+++ b/app.go
@@ -70,7 +70,11 @@ func (a *theApp) ServeTLS(ch *cryptotls.ClientHelloInfo) (*cryptotls.Certificate
if domain, _ := a.domain(context.Background(), ch.ServerName); domain != nil {
tls, err := domain.EnsureCertificate()
if err != nil {
- log.WithField("pages_host", domain.Name).WithError(err).Warn("failed to load certificate for custom domain")
+ log.WithFields(log.Fields{
+ "pages_host": domain.Name,
+ "local_addr": ch.Conn.LocalAddr().String(),
+ "remote_addr": ch.Conn.RemoteAddr().String(),
+ }).WithError(err).Warn("failed to load certificate for custom domain")
}
return tls, nil