mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
11 lines
212 B
Go
11 lines
212 B
Go
package dbg
|
|
|
|
import (
|
|
stack2 "github.com/go-stack/stack"
|
|
)
|
|
|
|
// Stack returns stack-trace in logger-friendly compact formatting
|
|
func Stack() string {
|
|
return stack2.Trace().TrimBelow(stack2.Caller(1)).String()
|
|
}
|