diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-29 16:29:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 16:29:17 +0800 |
commit | 17ae0ed3eef54d96bd179ff7fec0540cf3024748 (patch) | |
tree | a9111282717da16feb83baf352ffb2ee5178ca0d /internal/db/migrations/v15.go | |
parent | d59b0f6ff7ee24d94eaa5ad68173405faea6a81c (diff) |
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
Diffstat (limited to 'internal/db/migrations/v15.go')
-rw-r--r-- | internal/db/migrations/v15.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/migrations/v15.go b/internal/db/migrations/v15.go index 0631e472..d7cad3cf 100644 --- a/internal/db/migrations/v15.go +++ b/internal/db/migrations/v15.go @@ -39,7 +39,7 @@ func generateAndMigrateGitHooks(x *xorm.Engine) (err error) { ) // Cleanup old update.log and http.log files. - _ = filepath.Walk(conf.LogRootPath, func(path string, info os.FileInfo, err error) error { + _ = filepath.Walk(conf.Log.RootPath, func(path string, info os.FileInfo, err error) error { if !info.IsDir() && (strings.HasPrefix(filepath.Base(path), "update.log") || strings.HasPrefix(filepath.Base(path), "http.log")) { |