Commit c672bb4b authored by Euan Kemp's avatar Euan Kemp

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.
parent d9f78853
...@@ -210,7 +210,7 @@ func (rl *respLogger) recordStatus(status int) { ...@@ -210,7 +210,7 @@ func (rl *respLogger) recordStatus(status int) {
rl.statusRecorded = true rl.statusRecorded = true
if rl.logStacktracePred(status) { if rl.logStacktracePred(status) {
// Only log stacks for errors // Only log stacks for errors
stack := make([]byte, 2048) stack := make([]byte, 50*1024)
stack = stack[:runtime.Stack(stack, false)] stack = stack[:runtime.Stack(stack, false)]
rl.statusStack = "\n" + string(stack) rl.statusStack = "\n" + string(stack)
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment