mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #27298 from euank/larger-stack-print-size
Automatic merge from submit-queue httplog: Increase stack size The previous size, of 2KB, in practice always was filled mostly by http server-releated stuff well above the panic itself, and truncated before anything of real value was printed in some cases. This increases the stack size so that panics are printed in full (well, except for really large ones). cc @lavalamp
This commit is contained in:
commit
31f2aa9138
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user