diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-19 04:48:45 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-19 04:48:45 -0400 |
commit | bd9d90d8c48965e4e78fd56147c465ba80ec5ed5 (patch) | |
tree | e523e7db6eec1af33bb920680d24bacd64d8c588 /routers/user/user.go | |
parent | b192b70aecbe3b91affd9d9396669ed000a936d6 (diff) |
Add some log
Diffstat (limited to 'routers/user/user.go')
-rw-r--r-- | routers/user/user.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/user.go b/routers/user/user.go index f8c9b4d3..fc56997b 100644 --- a/routers/user/user.go +++ b/routers/user/user.go @@ -6,6 +6,7 @@ package user import ( "fmt" + "strings" "github.com/codegangsta/martini" "github.com/martini-contrib/render" @@ -14,6 +15,7 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/auth" "github.com/gogits/gogs/modules/base" + "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/middleware" ) @@ -146,6 +148,7 @@ func SignUp(ctx *middleware.Context, form auth.RegisterForm) { return } + log.Trace("%s User created: %s", ctx.Req.RequestURI, strings.ToLower(form.UserName)) ctx.Render.Redirect("/user/login") } |