markdown: Prefix log messages, and slight refactor

Also change sha1 to md5 for the directory scans; slightly faster.
This commit is contained in:
Matthew Holt
2015-08-05 08:15:52 -06:00
parent e94e90b046
commit 2e8a74ecff
5 changed files with 68 additions and 66 deletions

View File

@ -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