removed useless println

This commit is contained in:
Timon Ringwald 2020-09-10 15:05:28 +02:00
parent eb155f7ef2
commit 3c49668cc9
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package adverr package adverr
import ( import (
"fmt"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"
@ -23,7 +22,6 @@ func Trace(skip int) *CallTrace {
pc := make([]uintptr, CallStackLength+1) pc := make([]uintptr, CallStackLength+1)
n := runtime.Callers(skip+1, pc) n := runtime.Callers(skip+1, pc)
pc = pc[:n] pc = pc[:n]
fmt.Println(n, CallStackLength)
return &CallTrace{runtime.CallersFrames(pc), n == CallStackLength+1} return &CallTrace{runtime.CallersFrames(pc), n == CallStackLength+1}
} }

View File

@ -7,7 +7,7 @@ import (
) )
func TestErr(t *testing.T) { func TestErr(t *testing.T) {
TraceCallStack = false DisableTrace = false
err := doStuff() err := doStuff()
fmt.Println(err) fmt.Println(err)
} }