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
0aa76d3e
Commit
0aa76d3e
authored
Jan 21, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename jsonlogger method
parent
622bfd4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
backend.go
eth/backend.go
+1
-1
loggers.go
logger/loggers.go
+1
-1
No files found.
eth/backend.go
View file @
0aa76d3e
...
@@ -229,7 +229,7 @@ func (s *Ethereum) Start(seed bool) error {
...
@@ -229,7 +229,7 @@ func (s *Ethereum) Start(seed bool) error {
"coinbase"
:
ethutil
.
Bytes2Hex
(
s
.
KeyManager
()
.
Address
()),
"coinbase"
:
ethutil
.
Bytes2Hex
(
s
.
KeyManager
()
.
Address
()),
"eth_version"
:
ProtocolVersion
,
"eth_version"
:
ProtocolVersion
,
}
}
jsonlogger
.
Log
(
"starting"
,
evd
)
jsonlogger
.
Log
Json
(
"starting"
,
evd
)
err
:=
s
.
net
.
Start
()
err
:=
s
.
net
.
Start
()
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
logger/loggers.go
View file @
0aa76d3e
...
@@ -121,7 +121,7 @@ func NewJsonLogger() *JsonLogger {
...
@@ -121,7 +121,7 @@ func NewJsonLogger() *JsonLogger {
return
&
JsonLogger
{}
return
&
JsonLogger
{}
}
}
func
(
logger
*
JsonLogger
)
Log
(
msgname
string
,
dict
map
[
string
]
interface
{})
{
func
(
logger
*
JsonLogger
)
Log
Json
(
msgname
string
,
dict
map
[
string
]
interface
{})
{
if
_
,
ok
:=
dict
[
"ts"
];
!
ok
{
if
_
,
ok
:=
dict
[
"ts"
];
!
ok
{
dict
[
"ts"
]
=
time
.
Now
()
.
Local
()
.
Format
(
time
.
RFC3339Nano
)
dict
[
"ts"
]
=
time
.
Now
()
.
Local
()
.
Format
(
time
.
RFC3339Nano
)
}
}
...
...
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