From d617b0f44731e5a16f4225c28bce4dd3476dbcdc Mon Sep 17 00:00:00 2001 From: adlyq <2833154405@qq.com> Date: Mon, 2 May 2022 16:43:16 +0800 Subject: [PATCH] style: uid log tidy --- constant/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constant/metadata.go b/constant/metadata.go index 4ddb1bd9..980e1847 100644 --- a/constant/metadata.go +++ b/constant/metadata.go @@ -104,7 +104,7 @@ func (m *Metadata) SourceDetail() string { if m.Process != "" && m.Uid != nil { return fmt.Sprintf("%s(%s, uid=%d)", m.SourceAddress(), m.Process, *m.Uid) } else if m.Uid != nil { - return fmt.Sprintf("%s(%d)", m.SourceAddress(), *m.Uid) + return fmt.Sprintf("%s(uid=%d)", m.SourceAddress(), *m.Uid) } else if m.Process != "" { return fmt.Sprintf("%s(%s)", m.SourceAddress(), m.Process) } else {