From 794f4aebca56be45a84127eef3f561790bd1946a Mon Sep 17 00:00:00 2001 From: Yelshat Duskaliyev Date: Sun, 15 Sep 2024 16:35:56 +0500 Subject: [PATCH] feat: log only warns and errors from certmagic --- .gitignore | 1 + app/proxy/ssl.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9df165e..16da5e2 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ docker-compose-private.yml .idea *.gpg reproxy-private.yml +.env \ No newline at end of file diff --git a/app/proxy/ssl.go b/app/proxy/ssl.go index 328062d..9ed4429 100644 --- a/app/proxy/ssl.go +++ b/app/proxy/ssl.go @@ -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