summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-19 22:13:22 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-19 22:13:22 -0400
commit8bed017557c43701d92ca3e571761cd310ed8c83 (patch)
tree6ff85398dbee22d6f439f9678826601fb3a80f45 /modules
parent0e41726ece2f7e5efcadd0069190d13b3e8be07c (diff)
downloadgitea-8bed017557c43701d92ca3e571761cd310ed8c83.tar.gz
gitea-8bed017557c43701d92ca3e571761cd310ed8c83.zip
Add build tag enable prompt
Diffstat (limited to 'modules')
-rw-r--r--modules/base/conf.go6
-rw-r--r--modules/middleware/repo.go1
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 9dccc48f9d..720b861084 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -174,6 +174,12 @@ func newLogService() {
func newCacheService() {
CacheAdapter = Cfg.MustValue("cache", "ADAPTER", "memory")
+ if cache.EnableRedis {
+ log.Info("Redis Enabled")
+ }
+ if cache.EnableMemcache {
+ log.Info("Memcache Enabled")
+ }
switch CacheAdapter {
case "memory":
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index 07395df96a..9a23d67592 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -201,6 +201,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
// repo is bare and display enable
if displayBare && ctx.Repo.Repository.IsBare {
+ log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
ctx.HTML(200, "repo/single_bare")
return
}