From 66e57a4bac6a7cd35505f296d3cc763675320e93 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 19 Dec 2022 16:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lego/sys/log/formatter_console.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lego/sys/log/formatter_console.go b/lego/sys/log/formatter_console.go index bdf06cba5..259ac1829 100644 --- a/lego/sys/log/formatter_console.go +++ b/lego/sys/log/formatter_console.go @@ -63,6 +63,9 @@ func (this *ConsoleFormatter) Format(config *EncoderConfig, entry *Entry) (*pool line.AppendString(entry.Message) } for _, v := range entry.Data { + if v.Key == "" { + continue + } if !isfirst { line.AppendString(config.ConsoleSeparator) }