mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
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()),
|
"coinbase": ethutil.Bytes2Hex(s.KeyManager().Address()),
|
||||||
"eth_version": ProtocolVersion,
|
"eth_version": ProtocolVersion,
|
||||||
}
|
}
|
||||||
jsonlogger.Log("starting", evd)
|
jsonlogger.LogJson("starting", evd)
|
||||||
err := s.net.Start()
|
err := s.net.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -121,7 +121,7 @@ func NewJsonLogger() *JsonLogger {
|
|||||||
return &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 {
|
if _, ok := dict["ts"]; !ok {
|
||||||
dict["ts"] = time.Now().Local().Format(time.RFC3339Nano)
|
dict["ts"] = time.Now().Local().Format(time.RFC3339Nano)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user