mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
cmd: update to pr change request
This commit is contained in:
parent
5daa64bdb0
commit
0569719fcc
1 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,8 @@ type JSONLogger struct {
|
|||
cfg *vm.LogConfig
|
||||
}
|
||||
|
||||
// NewJSONLogger assigns values to JSONLogger struct.
|
||||
// NewJSONLogger creates a new EVM tracer that prints execution steps as JSON objects
|
||||
// into the provided stream.
|
||||
func NewJSONLogger(cfg *vm.LogConfig, writer io.Writer) *JSONLogger {
|
||||
return &JSONLogger{json.NewEncoder(writer), cfg}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue