From 3c49668cc91c0aba83c51c6e7556ae70182c76a3 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Thu, 10 Sep 2020 15:05:28 +0200 Subject: [PATCH] removed useless println --- calltrace.go | 2 -- error_test.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/calltrace.go b/calltrace.go index 3368131..1479173 100644 --- a/calltrace.go +++ b/calltrace.go @@ -1,7 +1,6 @@ package adverr import ( - "fmt" "runtime" "strconv" "strings" @@ -23,7 +22,6 @@ func Trace(skip int) *CallTrace { pc := make([]uintptr, CallStackLength+1) n := runtime.Callers(skip+1, pc) pc = pc[:n] - fmt.Println(n, CallStackLength) return &CallTrace{runtime.CallersFrames(pc), n == CallStackLength+1} } diff --git a/error_test.go b/error_test.go index 2c9b384..18edb94 100644 --- a/error_test.go +++ b/error_test.go @@ -7,7 +7,7 @@ import ( ) func TestErr(t *testing.T) { - TraceCallStack = false + DisableTrace = false err := doStuff() fmt.Println(err) }