diff options
author | zeripath <art27@cantab.net> | 2019-02-06 03:06:41 +0000 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-02-05 22:06:41 -0500 |
commit | f286a5abb42f94d7c597f41b25990f2ccee0bb77 (patch) | |
tree | 3fe2d144b63b088e38a8bbd3ff64965edb3e1183 /modules/setting/setting.go | |
parent | 3b7f41f9f7bbd3d19ce5a6b667b5c1f56c2b1b51 (diff) | |
download | gitea-f286a5abb42f94d7c597f41b25990f2ccee0bb77.tar.gz gitea-f286a5abb42f94d7c597f41b25990f2ccee0bb77.zip |
Allow Macaron to be set to log through to gitea.log (#5667)
* Allow Macaron to be set to log through gitea.log
Fix #4291
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r-- | modules/setting/setting.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 77f0725d00..0859b81c40 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -393,10 +393,11 @@ var ( LibravatarService *libravatar.Libravatar // Log settings - LogLevel string - LogRootPath string - LogModes []string - LogConfigs []string + LogLevel string + LogRootPath string + LogModes []string + LogConfigs []string + RedirectMacaronLog bool // Attachment settings AttachmentPath string @@ -767,6 +768,7 @@ func NewContext() { LogLevel = getLogLevel("log", "LEVEL", "Info") LogRootPath = Cfg.Section("log").Key("ROOT_PATH").MustString(path.Join(AppWorkPath, "log")) forcePathSeparator(LogRootPath) + RedirectMacaronLog = Cfg.Section("log").Key("REDIRECT_MACARON_LOG").MustBool(false) sec := Cfg.Section("server") AppName = Cfg.Section("").Key("APP_NAME").MustString("Gitea: Git with a cup of tea") |