Skip to content

Commit

Permalink
dont use newlines in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
daaku committed May 26, 2012
1 parent 4e94756 commit 1b80da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func Write(w http.ResponseWriter, r *http.Request, html h.HTML) {
if r.Method != "HEAD" {
_, err := h.Write(w, html)
if err != nil {
log.Printf("Error writing HTML.\nURL: %s\nError: %s", r.URL, err)
log.Printf("Error writing HTML for URL: %s: %s", r.URL, err)
h.Write(w, h.String("FATAL ERROR"))
}
}
Expand Down

0 comments on commit 1b80da1

Please sign in to comment.