From 3b8657d9177ad2f3dca5ecf0e1f8f62c20e776f7 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 25 Feb 2014 14:01:52 +0800 Subject: finished serve command --- models/models.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'models') diff --git a/models/models.go b/models/models.go index 0f8fcac1..20f1e023 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") } -- cgit v1.2.3