Permalink
Browse files

dont use newlines in logs

  • Loading branch information...
1 parent 4e94756 commit 1b80da14f0fa833897df5771b013c6692fdc94d4 @daaku daaku committed May 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 view/view.go
View
@@ -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"))
}
}

0 comments on commit 1b80da1

Please sign in to comment.