forked from cerc-io/plugeth
Rename jsonlogger method
This commit is contained in:
parent
622bfd4f08
commit
0aa76d3e5b
@ -229,7 +229,7 @@ func (s *Ethereum) Start(seed bool) error {
|
||||
"coinbase": ethutil.Bytes2Hex(s.KeyManager().Address()),
|
||||
"eth_version": ProtocolVersion,
|
||||
}
|
||||
jsonlogger.Log("starting", evd)
|
||||
jsonlogger.LogJson("starting", evd)
|
||||
err := s.net.Start()
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -121,7 +121,7 @@ func NewJsonLogger() *JsonLogger {
|
||||
return &JsonLogger{}
|
||||
}
|
||||
|
||||
func (logger *JsonLogger) Log(msgname string, dict map[string]interface{}) {
|
||||
func (logger *JsonLogger) LogJson(msgname string, dict map[string]interface{}) {
|
||||
if _, ok := dict["ts"]; !ok {
|
||||
dict["ts"] = time.Now().Local().Format(time.RFC3339Nano)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user