From c15c349e0274096ea08f0bf2dd3e895c42a98570 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 29 五月 2019 13:55:02 +0800
Subject: [PATCH] fix bug
---
log/log.go | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/log/log.go b/log/log.go
index 401c443..e5ca557 100644
--- a/log/log.go
+++ b/log/log.go
@@ -13,6 +13,7 @@
func init() {
Log = NewLogger()
+ Log.SetLevel(logrus.ErrorLevel)
}
func NewLogger() *logrus.Logger {
@@ -20,7 +21,7 @@
return Log
}
- infopath := "log/log_record/info.log"
+ infopath := "logs/info.log"
infowriter, _ := rotatelogs.New(
infopath+".%Y%m%d%H%M",
rotatelogs.WithLinkName(infopath),
@@ -28,7 +29,7 @@
rotatelogs.WithRotationTime(24*time.Hour),
)
- errorpath := "log/log_record/error.log"
+ errorpath := "logs/error.log"
errorwriter, _ := rotatelogs.New(
errorpath+".%Y%m%d%H%M",
rotatelogs.WithLinkName(errorpath),
--
Gitblit v1.8.0