diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-01 18:53:41 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-01 18:53:41 -0400 |
commit | 100cd181bcc9fc46981cc2a4b88c05ad459fbc8f (patch) | |
tree | 2b2a8f07fa2760721e9418c39c51d751618ada5a /modules/base | |
parent | 03c2468c2fa68e5b3c5cb6c498a155e7d725ccdb (diff) | |
download | gitea-100cd181bcc9fc46981cc2a4b88c05ad459fbc8f.tar.gz gitea-100cd181bcc9fc46981cc2a4b88c05ad459fbc8f.zip |
Add router log config option
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/conf.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index cfc85ff51e..23c7276bf1 100644 --- a/modules/base/conf.go +++ b/modules/base/conf.go @@ -50,6 +50,7 @@ var ( AppLogo string AppUrl string OfflineMode bool + RouterLog bool ProdMode bool Domain string SecretKey string @@ -327,6 +328,7 @@ func NewConfigContext() { AppUrl = Cfg.MustValue("server", "ROOT_URL") Domain = Cfg.MustValue("server", "DOMAIN") OfflineMode = Cfg.MustBool("server", "OFFLINE_MODE", false) + RouterLog = Cfg.MustBool("server", "ROUTER_LOG", true) SecretKey = Cfg.MustValue("security", "SECRET_KEY") InstallLock = Cfg.MustBool("security", "INSTALL_LOCK", false) |