From b5a42644659976de97fb5c063cdec4b0ee3d381b Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 16 Sep 2022 11:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=B1=A0=20=E5=A0=86=E6=A0=88=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=B8=85=E7=90=86=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lego/sys/log/entry.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lego/sys/log/entry.go b/lego/sys/log/entry.go index ad98713b2..d47251408 100644 --- a/lego/sys/log/entry.go +++ b/lego/sys/log/entry.go @@ -85,6 +85,11 @@ type Entry struct { func (entry *Entry) reset() { entry.Message = "" + entry.Caller.Defined = false + entry.Caller.File = "" + entry.Caller.Line = 0 + entry.Caller.Function = "" + entry.Caller.Stack = "" entry.Err = "" entry.Data = entry.Data[:0] }