From c62a6b7a1238524225ec9c214dc5eac7da017663 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 20 Dec 2015 01:06:54 -0500 Subject: #2014 allow switch branches between two orgs in compose PR --- modules/middleware/context.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 571b19bf73..2d24d0ce58 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -125,6 +125,7 @@ func (ctx *Context) HasValue(name string) bool { // HTML calls Context.HTML and converts template name to string. func (ctx *Context) HTML(status int, name base.TplName) { + log.Debug("Template: %s", name) ctx.Context.HTML(status, string(name)) } @@ -241,6 +242,7 @@ func Contexter() macaron.Handler { ctx.Data["CsrfToken"] = x.GetToken() ctx.Data["CsrfTokenHtml"] = template.HTML(``) + log.Debug("CSRF Token: %v | %v", ctx.Data["CsrfToken"], ctx.GetCookie("_csrf")) ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding -- cgit v1.2.3