mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-05 03:34:41 +08:00
markdown: Prefix log messages, and slight refactor
Also change sha1 to md5 for the directory scans; slightly faster.
This commit is contained in:
@ -114,7 +114,7 @@ func (md Markdown) processTemplate(c Config, requestPath string, tmpl []byte, me
|
||||
// if static page generation fails,
|
||||
// nothing fatal, only log the error.
|
||||
// TODO: Report this non-fatal error, but don't log it here
|
||||
log.Println(err)
|
||||
log.Println("Rendering error (markdown):", err)
|
||||
}
|
||||
|
||||
return b.Bytes(), nil
|
||||
|
Reference in New Issue
Block a user