From fc84a81e79868056a50120808ddc0e791f0b02d7 Mon Sep 17 00:00:00 2001 From: JameyWoo <2622075127wjh@gmail.com> Date: Sat, 30 May 2020 09:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tinykv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinykv.go b/tinykv.go index fad356d..67ec6ee 100644 --- a/tinykv.go +++ b/tinykv.go @@ -47,7 +47,7 @@ type MyFormatter struct{} func (s *MyFormatter) Format(entry *logrus.Entry) ([]byte, error) { timestamp := time.Now().Local().Format("2006/01/02 15:04:05") - fmt.Println(entry.Caller.File) + //fmt.Println(entry.Caller.File) fullPath := strings.Split(entry.Caller.File, "/") path := fullPath[len(fullPath) - 1] + ":" + strconv.Itoa(entry.Caller.Line) msg := fmt.Sprintf("%s %8s %15s\t %s\n",