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
7bcf875c
Commit
7bcf875c
authored
Jun 23, 2014
by
zelig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add logging for jsre
parent
f90001e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
javascript_runtime.go
ethereum/javascript_runtime.go
+7
-1
No files found.
ethereum/javascript_runtime.go
View file @
7bcf875c
...
...
@@ -6,6 +6,7 @@ import (
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/go-ethereum/utils"
"github.com/obscuren/otto"
"io/ioutil"
...
...
@@ -14,6 +15,8 @@ import (
"path/filepath"
)
var
jsrelogger
=
ethlog
.
NewLogger
(
"JSRE"
)
type
JSRE
struct
{
ethereum
*
eth
.
Ethereum
vm
*
otto
.
Otto
...
...
@@ -31,7 +34,7 @@ func (jsre *JSRE) LoadExtFile(path string) {
if
err
==
nil
{
jsre
.
vm
.
Run
(
result
)
}
else
{
ethutil
.
Config
.
Log
.
Debugln
(
"Could not load file:"
,
path
)
jsrelogger
.
Debugln
(
"Could not load file:"
,
path
)
}
}
...
...
@@ -65,6 +68,8 @@ func NewJSRE(ethereum *eth.Ethereum) *JSRE {
re
.
initStdFuncs
()
jsrelogger
.
Infoln
(
"started"
)
return
re
}
...
...
@@ -99,6 +104,7 @@ func (self *JSRE) Stop() {
close
(
self
.
blockChan
)
close
(
self
.
quitChan
)
close
(
self
.
changeChan
)
jsrelogger
.
Infoln
(
"stopped"
)
}
func
(
self
*
JSRE
)
mainLoop
()
{
...
...
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