mirror of
https://github.com/umputun/reproxy.git
synced 2025-11-23 22:04:57 +02:00
feat: log only warns and errors from certmagic
This commit is contained in:
committed by
Yelshat Duskaliyev
parent
ef07ba9e57
commit
794f4aebca
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,3 +8,4 @@ docker-compose-private.yml
|
|||||||
.idea
|
.idea
|
||||||
*.gpg
|
*.gpg
|
||||||
reproxy-private.yml
|
reproxy-private.yml
|
||||||
|
.env
|
||||||
@@ -91,8 +91,8 @@ func (h *Http) makeAutocertManager() AutocertManager {
|
|||||||
|
|
||||||
logger := zap.New(zapcore.NewCore(
|
logger := zap.New(zapcore.NewCore(
|
||||||
zapcore.NewConsoleEncoder(zap.NewProductionEncoderConfig()),
|
zapcore.NewConsoleEncoder(zap.NewProductionEncoderConfig()),
|
||||||
nopSyncer{Writer: log.ToWriter(log.Default(), "[DEBUG][certmagic]")},
|
nopSyncer{Writer: log.ToWriter(log.Default(), "[WARN][certmagic]")},
|
||||||
zap.DebugLevel,
|
zap.WarnLevel,
|
||||||
))
|
))
|
||||||
|
|
||||||
// certmagic requires to make a configuration template in order to keep up
|
// certmagic requires to make a configuration template in order to keep up
|
||||||
|
|||||||
Reference in New Issue
Block a user