From 17ae0ed3eef54d96bd179ff7fec0540cf3024748 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 29 Feb 2020 16:29:17 +0800 Subject: conf: overhaul settings (#5953) * Overhaul cache settings * Overhaul HTTP settings * conf: overhaul more settings * log: make LGTM happy * travis: upload report to Codecov * Add codecov.yml --- internal/db/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/models.go') diff --git a/internal/db/models.go b/internal/db/models.go index ae54a2da..212a1f60 100644 --- a/internal/db/models.go +++ b/internal/db/models.go @@ -172,7 +172,7 @@ func SetEngine() (err error) { // WARNING: for serv command, MUST remove the output to os.stdout, // so use log file to instead print to stdout. sec := conf.File.Section("log.xorm") - logger, err := log.NewFileWriter(path.Join(conf.LogRootPath, "xorm.log"), + logger, err := log.NewFileWriter(path.Join(conf.Log.RootPath, "xorm.log"), log.FileRotationConfig{ Rotate: sec.Key("ROTATE").MustBool(true), Daily: sec.Key("ROTATE_DAILY").MustBool(true), -- cgit v1.2.3