ref: eb00c621e086d39c93a9e40b642c423de211b934
parent: 8ddd95e3614718b5ff335fe484c451ca45b9a345
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Oct 12 06:12:15 EDT 2016
tpl: Remove the spamming template errors Fixes #2343
--- a/tpl/template.go
+++ b/tpl/template.go
@@ -127,7 +127,8 @@
if templ != nil {
if err := templ.Execute(w, context); err != nil {
- jww.ERROR.Println(err, "in", layout)
+ // Printing the err is spammy, see https://github.com/golang/go/issues/17414
+ helpers.DistinctErrorLog.Println(layout, "is an incomplete or empty template")
}
worked = true
break