use uniq envvar STACKTRACE
This commit is contained in:
parent
966fc4686a
commit
89eb0d4da6
2
scope.go
2
scope.go
@ -83,7 +83,7 @@ func (scope *Scope) Quote(str string) string {
|
||||
|
||||
// stackTrace spews a small stack trace
|
||||
func stackTrace(err error) {
|
||||
if d := os.Getenv("DEBUG"); d == "true" {
|
||||
if d := os.Getenv("STACKTRACE"); d == "true" {
|
||||
fmt.Println("#########: ", err)
|
||||
for i := 8; i > 0; i-- {
|
||||
_, file, no, ok := runtime.Caller(i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user