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
4322632c
Commit
4322632c
authored
Feb 19, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #339 from tgerring/jsonlog
JSON log updates
parents
fdecc111
07bdba68
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
296 additions
and
300 deletions
+296
-300
main.go
cmd/ethereum/main.go
+1
-0
backend.go
eth/backend.go
+0
-2
types.go
logger/types.go
+295
-298
No files found.
cmd/ethereum/main.go
View file @
4322632c
...
@@ -67,6 +67,7 @@ func main() {
...
@@ -67,6 +67,7 @@ func main() {
DataDir
:
Datadir
,
DataDir
:
Datadir
,
LogFile
:
LogFile
,
LogFile
:
LogFile
,
LogLevel
:
LogLevel
,
LogLevel
:
LogLevel
,
LogFormat
:
LogFormat
,
MaxPeers
:
MaxPeer
,
MaxPeers
:
MaxPeer
,
Port
:
OutboundPort
,
Port
:
OutboundPort
,
NAT
:
NAT
,
NAT
:
NAT
,
...
...
eth/backend.go
View file @
4322632c
...
@@ -209,9 +209,7 @@ func (s *Ethereum) Coinbase() []byte { return nil } // TODO
...
@@ -209,9 +209,7 @@ func (s *Ethereum) Coinbase() []byte { return nil } // TODO
func
(
s
*
Ethereum
)
Start
()
error
{
func
(
s
*
Ethereum
)
Start
()
error
{
jsonlogger
.
LogJson
(
&
ethlogger
.
LogStarting
{
jsonlogger
.
LogJson
(
&
ethlogger
.
LogStarting
{
ClientString
:
s
.
net
.
Name
,
ClientString
:
s
.
net
.
Name
,
Coinbase
:
ethutil
.
Bytes2Hex
(
s
.
KeyManager
()
.
Address
()),
ProtocolVersion
:
ProtocolVersion
,
ProtocolVersion
:
ProtocolVersion
,
LogEvent
:
ethlogger
.
LogEvent
{
Guid
:
ethutil
.
Bytes2Hex
(
crypto
.
FromECDSAPub
(
&
s
.
net
.
PrivateKey
.
PublicKey
))},
})
})
err
:=
s
.
net
.
Start
()
err
:=
s
.
net
.
Start
()
...
...
logger/types.go
View file @
4322632c
This diff is collapsed.
Click to expand it.
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