debug: log when HTML handler serves a file

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-20 09:43:58 +01:00
parent 9a53d1f4ed
commit ce1e45fc1e
+1
View File
@@ -162,6 +162,7 @@ func handleFileViewRenderHTML(ctx *context.Context, fInfo *fileInfo) bool {
if ctx.FormString("display") == "source" { if ctx.FormString("display") == "source" {
return false return false
} }
log.Info("handleFileViewRenderHTML: serving as HTML for %s (display=%s)", ctx.Repo.TreePath, ctx.FormString("display"))
ctx.Data["IsHTMLFile"] = true ctx.Data["IsHTMLFile"] = true
ctx.Data["HasSourceRenderedToggle"] = true ctx.Data["HasSourceRenderedToggle"] = true
return true return true