From c672bb4b639cee10870b3c1f818681347bec3a8a Mon Sep 17 00:00:00 2001 From: Euan Kemp Date: Mon, 13 Jun 2016 13:00:21 -0700 Subject: [PATCH] httplog: Increase stack size The previous size, of 2KB, in practice always was filled completely by http server-releated stuff well above the panic itself, and truncated before anything of real value was printed. This increases the stack size so that panics are printed in full. --- pkg/httplog/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/httplog/log.go b/pkg/httplog/log.go index 2696019f0d1..d4530dbd8b8 100644 --- a/pkg/httplog/log.go +++ b/pkg/httplog/log.go @@ -210,7 +210,7 @@ func (rl *respLogger) recordStatus(status int) { rl.statusRecorded = true if rl.logStacktracePred(status) { // Only log stacks for errors - stack := make([]byte, 2048) + stack := make([]byte, 50*1024) stack = stack[:runtime.Stack(stack, false)] rl.statusStack = "\n" + string(stack) } else {