1
0
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:
Yelshat Duskaliyev
2024-09-15 16:35:56 +05:00
committed by Yelshat Duskaliyev
parent ef07ba9e57
commit 794f4aebca
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -8,3 +8,4 @@ docker-compose-private.yml
.idea
*.gpg
reproxy-private.yml
.env

View File

@@ -91,8 +91,8 @@ func (h *Http) makeAutocertManager() AutocertManager {
logger := zap.New(zapcore.NewCore(
zapcore.NewConsoleEncoder(zap.NewProductionEncoderConfig()),
nopSyncer{Writer: log.ToWriter(log.Default(), "[DEBUG][certmagic]")},
zap.DebugLevel,
nopSyncer{Writer: log.ToWriter(log.Default(), "[WARN][certmagic]")},
zap.WarnLevel,
))
// certmagic requires to make a configuration template in order to keep up