aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-12-01 09:00:02 -0500
committerChristine Dodrill <me@christine.website>2019-12-01 09:00:02 -0500
commit90f4a88b78557e8b5b113829685e9d34f6eff1a7 (patch)
tree6d10117df7dd40d60da88b0dba53812060b5b010
parentfaa5368bc50c84c3a1dfaf67bc21c2cd2bbb921f (diff)
downloadx-90f4a88b78557e8b5b113829685e9d34f6eff1a7.tar.xz
x-90f4a88b78557e8b5b113829685e9d34f6eff1a7.zip
localca: fixes
-rw-r--r--localca/localca.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/localca/localca.go b/localca/localca.go
index 86c8ee7..360b53f 100644
--- a/localca/localca.go
+++ b/localca/localca.go
@@ -9,8 +9,6 @@ import (
"time"
"golang.org/x/crypto/acme/autocert"
- "within.website/ln"
- "within.website/ln/opname"
)
var (
@@ -60,8 +58,6 @@ func (m Manager) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, e
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()
- ctx = opname.With(ctx, "localca.Manager.GetCertificate")
- ctx = ln.WithF(ctx, ln.F{"server_name": name})
data, err := m.Cache.Get(ctx, name)
if err != nil && err != autocert.ErrCacheMiss {
@@ -84,8 +80,6 @@ func (m Manager) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, e
return nil, err
}
- ln.Log(ctx, ln.Info("returned cert successfully"))
-
return cert, nil
}