summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-02-25 14:01:52 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-02-25 14:01:52 +0800
commit3b8657d9177ad2f3dca5ecf0e1f8f62c20e776f7 (patch)
treeb4fb1acb661c9bfbc811a6281bebe3c16b8edb36 /models
parent594ec0b659c34bfb25cc4f6f686dd7839b36e00c (diff)
downloadgitea-3b8657d9177ad2f3dca5ecf0e1f8f62c20e776f7.tar.gz
gitea-3b8657d9177ad2f3dca5ecf0e1f8f62c20e776f7.zip
finished serve command
Diffstat (limited to 'models')
-rw-r--r--models/models.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/models/models.go b/models/models.go
index 0f8fcac1a8..20f1e02311 100644
--- a/models/models.go
+++ b/models/models.go
@@ -13,7 +13,6 @@ import (
"github.com/lunny/xorm"
"github.com/gogits/gogs/utils"
- "github.com/gogits/gogs/utils/log"
)
var (
@@ -72,11 +71,14 @@ func setEngine() {
os.Exit(2)
}
+ //TODO: for serv command, MUST remove the output to os.stdout, so
+ // use log file to instead print to stdout
+
//x.ShowDebug = true
- orm.ShowErr = true
+ //orm.ShowErr = true
//x.ShowSQL = true
- log.Trace("Initialized database -> %s", dbName)
+ //log.Trace("Initialized database -> %s", dbName)
RepoRootPath = utils.Cfg.MustValue("repository", "ROOT")
}