mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
certmagic: improve logging (#1358)
* certmagic: improve logging * Update internal/autocert/manager.go Co-authored-by: bobby <1544881+desimone@users.noreply.github.com> Co-authored-by: bobby <1544881+desimone@users.noreply.github.com>
This commit is contained in:
parent
c44219b9b3
commit
e4e6abfd29
4 changed files with 55 additions and 120 deletions
|
@ -12,6 +12,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/caddyserver/certmagic"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/pomerium/pomerium/config"
|
||||
"github.com/pomerium/pomerium/internal/httputil"
|
||||
|
@ -43,6 +44,7 @@ func New(src config.Source) (*Manager, error) {
|
|||
certmagic.Default.Storage = &certmagic.FileStorage{
|
||||
Path: src.GetConfig().Options.AutocertOptions.Folder,
|
||||
}
|
||||
certmagic.Default.Logger = log.ZapLogger().With(zap.String("service", "autocert"))
|
||||
|
||||
mgr := &Manager{
|
||||
src: src,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue