Skip to content

Commit

Permalink
Merge pull request #339 from tgerring/jsonlog
Browse files Browse the repository at this point in the history
JSON log updates
  • Loading branch information
tgerring committed Feb 19, 2015
2 parents fdecc11 + 07bdba6 commit 4322632
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 300 deletions.
1 change: 1 addition & 0 deletions cmd/ethereum/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func main() {
DataDir: Datadir,
LogFile: LogFile,
LogLevel: LogLevel,
LogFormat: LogFormat,
MaxPeers: MaxPeer,
Port: OutboundPort,
NAT: NAT,
Expand Down
2 changes: 0 additions & 2 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@ func (s *Ethereum) Coinbase() []byte { return nil } // TODO
func (s *Ethereum) Start() error {
jsonlogger.LogJson(&ethlogger.LogStarting{
ClientString: s.net.Name,
Coinbase: ethutil.Bytes2Hex(s.KeyManager().Address()),
ProtocolVersion: ProtocolVersion,
LogEvent: ethlogger.LogEvent{Guid: ethutil.Bytes2Hex(crypto.FromECDSAPub(&s.net.PrivateKey.PublicKey))},
})

err := s.net.Start()
Expand Down
Loading

0 comments on commit 4322632

Please sign in to comment.