mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
add debug log
This commit is contained in:
5
common/testdata/testdata.go
vendored
5
common/testdata/testdata.go
vendored
@@ -2,7 +2,9 @@ package testdata
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
|
||||
"github.com/scroll-tech/go-ethereum/core/types"
|
||||
@@ -20,6 +22,9 @@ var (
|
||||
func init() {
|
||||
dir, _ := os.Getwd()
|
||||
index := strings.LastIndex(dir, "scroll-tech/scroll")
|
||||
if index == -1 {
|
||||
fmt.Println("call stack is: ", debug.Stack())
|
||||
}
|
||||
pwd := dir[:index] + "scroll-tech/scroll/common/testdata/"
|
||||
for file := range TraceList {
|
||||
data, err := os.ReadFile(pwd + file)
|
||||
|
||||
Reference in New Issue
Block a user