Skip to content

Commit

Permalink
Fix a bunch of stupid null chars emitted on panic.
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos committed Jun 6, 2014
1 parent 84e2fa3 commit 5eb5ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (h *CookooHandler) ServeHTTP(res http.ResponseWriter, req *http.Request) {
// unwound up to here.
stack := make([]byte, 8192)
size := runtime.Stack(stack, false)
h.BaseContext.Logf("error", "Stack: %s", stack)
h.BaseContext.Logf("error", "Stack: %s", stack[:size])

if size == 8192 {
h.BaseContext.Logf("error", "<truncated stack trace at 8192 bytes>")
Expand Down

0 comments on commit 5eb5ec8

Please sign in to comment.