From bcccf5095680ab346e2c8ddeaa884578066042c1 Mon Sep 17 00:00:00 2001 From: duanhf2012 Date: Wed, 1 Apr 2020 18:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/log.go b/log/log.go index 1c7cab9..53d96fc 100644 --- a/log/log.go +++ b/log/log.go @@ -123,7 +123,7 @@ func (logger *Logger) Fatal(format string, a ...interface{}) { logger.doPrintf(fatalLevel, printFatalLevel, format, a...) } -var gLogger, _ = New("debug", "", log.LstdFlags) +var gLogger, _ = New("debug", "", log.LstdFlags|log.Lshortfile) // It's dangerous to call the method on logging func Export(logger *Logger) {