mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-22 09:39:58 +08:00
Don't truncate process log; more consistent output
This commit is contained in:
@ -115,10 +115,9 @@ func (md Markdown) processTemplate(c *Config, requestPath string, tmpl []byte, m
|
||||
|
||||
// generate static page
|
||||
if err = md.generatePage(c, requestPath, b.Bytes()); err != nil {
|
||||
// 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("Rendering error (markdown):", err)
|
||||
// if static page generation fails, nothing fatal, only log the error.
|
||||
// TODO: Report (return) this non-fatal error, but don't log it here?
|
||||
log.Println("[ERROR] markdown: Render:", err)
|
||||
}
|
||||
|
||||
return b.Bytes(), nil
|
||||
|
Reference in New Issue
Block a user