File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import (
24
24
"runtime/debug"
25
25
"sync"
26
26
"time"
27
- "unsafe"
28
27
29
28
"github.com/caddyserver/certmagic"
30
29
"go.uber.org/zap"
@@ -147,9 +146,7 @@ func (t *TLS) Provision(ctx caddy.Context) error {
147
146
certCacheMu .Lock ()
148
147
if certCache == nil {
149
148
certCache = certmagic .NewCache (cacheOpts )
150
- fmt .Println ("creating cert cache" , unsafe .Pointer (certCache ))
151
149
} else {
152
- fmt .Println ("reusing cert cache" , unsafe .Pointer (certCache ))
153
150
certCache .SetOptions (cacheOpts )
154
151
}
155
152
certCacheMu .Unlock ()
@@ -359,7 +356,6 @@ func (t *TLS) Stop() error {
359
356
360
357
// Cleanup frees up resources allocated during Provision.
361
358
func (t * TLS ) Cleanup () error {
362
- fmt .Println ("cleanup called cert cache" , unsafe .Pointer (certCache ))
363
359
// stop the session ticket rotation goroutine
364
360
if t .SessionTickets != nil {
365
361
t .SessionTickets .stop ()
@@ -405,7 +401,6 @@ func (t *TLS) Cleanup() error {
405
401
406
402
// remove the certs
407
403
certCacheMu .RLock ()
408
- fmt .Println ("washing cert cache" , unsafe .Pointer (certCache ))
409
404
certCache .RemoveManaged (noLongerManaged )
410
405
certCache .Remove (noLongerLoaded )
411
406
certCacheMu .RUnlock ()
@@ -422,7 +417,6 @@ func (t *TLS) Cleanup() error {
422
417
certCache .Stop ()
423
418
certCacheMu .Lock ()
424
419
certCache = nil
425
- fmt .Println ("deleting cert cache" , unsafe .Pointer (certCache ))
426
420
certCacheMu .Unlock ()
427
421
}
428
422
You can’t perform that action at this time.
0 commit comments