From 61b14fe82b6bd228e44b05b51115ad765b6cc82b Mon Sep 17 00:00:00 2001 From: zicla Date: Fri, 26 Apr 2019 01:28:50 +0800 Subject: [PATCH] Finish maintain the log file. --- rest/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/logger.go b/rest/logger.go index 40974b0..1ec217e 100644 --- a/rest/logger.go +++ b/rest/logger.go @@ -134,7 +134,7 @@ func (this *Logger) openFile() { panic("日志文件无法正常打开: " + err.Error()) } - this.goLogger = log.New(f, "", log.LstdFlags|log.Lshortfile) + this.goLogger = log.New(f, "", log.Ltime|log.Lshortfile) this.file = f }