Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
08b11540
Commit
08b11540
authored
Mar 11, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed logging to use internal logger
parent
477815c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vm.go
vm/vm.go
+4
-4
No files found.
vm/vm.go
View file @
08b11540
...
...
@@ -37,7 +37,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
context
:=
NewContext
(
caller
,
me
,
code
,
gas
,
price
)
vmlogger
.
Debugf
(
"(%d) (%x) %x (code=%d) gas: %v (d) %x
\n
"
,
self
.
env
.
Depth
(),
caller
.
Address
()[
:
4
],
context
.
Address
(),
len
(
code
),
context
.
Gas
,
callData
)
self
.
Printf
(
"(%d) (%x) %x (code=%d) gas: %v (d) %x"
,
self
.
env
.
Depth
(),
caller
.
Address
()[
:
4
],
context
.
Address
(),
len
(
code
),
context
.
Gas
,
callData
)
.
Endl
(
)
if
self
.
Recoverable
{
// Recover from any require exception
...
...
@@ -696,7 +696,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
if
err
!=
nil
{
stack
.
push
(
ethutil
.
BigFalse
)
vmlogger
.
Debugln
(
err
)
self
.
Printf
(
"%v"
)
.
Endl
(
)
}
else
{
stack
.
push
(
ethutil
.
BigTrue
)
...
...
@@ -726,7 +726,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
return
context
.
Return
(
nil
),
nil
default
:
vmlogger
.
Debugf
(
"(pc) %-3v Invalid opcode %x
\n
"
,
pc
,
op
)
self
.
Printf
(
"(pc) %-3v Invalid opcode %x
\n
"
,
pc
,
op
)
.
Endl
(
)
panic
(
fmt
.
Errorf
(
"Invalid opcode %x"
,
op
))
}
...
...
@@ -894,7 +894,7 @@ func (self *Vm) Printf(format string, v ...interface{}) VirtualMachine {
func
(
self
*
Vm
)
Endl
()
VirtualMachine
{
if
self
.
debug
{
if
self
.
logTy
==
LogTyPretty
{
vmlogger
.
Debug
ln
(
self
.
logStr
)
vmlogger
.
Info
ln
(
self
.
logStr
)
self
.
logStr
=
""
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment