diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-08-02 00:09:08 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-02 00:09:08 +0800 |
commit | 83e2761c3a13524bd5d6597ac08994488cf872ef (patch) | |
tree | a9cb744cf357651f38163005cba14793bfc95720 /cmd/evm/staterunner.go | |
parent | 46d4721519f80074795a0631f5bab875433a1cc6 (diff) | |
download | dexon-83e2761c3a13524bd5d6597ac08994488cf872ef.tar.gz dexon-83e2761c3a13524bd5d6597ac08994488cf872ef.tar.zst dexon-83e2761c3a13524bd5d6597ac08994488cf872ef.zip |
Revert "cmd/evm: change error msg output to stderr (#17118)"
This reverts commit fb9f7261ec51e38eedb454594fc19f00de1a6834.
Diffstat (limited to 'cmd/evm/staterunner.go')
-rw-r--r-- | cmd/evm/staterunner.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go index bee1b34dc..6d5ff069f 100644 --- a/cmd/evm/staterunner.go +++ b/cmd/evm/staterunner.go @@ -107,7 +107,7 @@ func stateTestCmd(ctx *cli.Context) error { } // print state root for evmlab tracing (already committed above, so no need to delete objects again if ctx.GlobalBool(MachineFlag.Name) && state != nil { - fmt.Fprintf(ctx.App.ErrWriter, "{\"stateRoot\": \"%x\"}\n", state.IntermediateRoot(false)) + fmt.Fprintf(os.Stderr, "{\"stateRoot\": \"%x\"}\n", state.IntermediateRoot(false)) } results = append(results, *result) @@ -115,13 +115,13 @@ func stateTestCmd(ctx *cli.Context) error { // Print any structured logs collected if ctx.GlobalBool(DebugFlag.Name) { if debugger != nil { - fmt.Fprintln(ctx.App.ErrWriter, "#### TRACE ####") - vm.WriteTrace(ctx.App.ErrWriter, debugger.StructLogs()) + fmt.Fprintln(os.Stderr, "#### TRACE ####") + vm.WriteTrace(os.Stderr, debugger.StructLogs()) } } } } out, _ := json.MarshalIndent(results, "", " ") - fmt.Fprintln(ctx.App.Writer, string(out)) + fmt.Println(string(out)) return nil } |