Rename jsonlogger method

This commit is contained in:
Taylor Gerring 2015-01-21 11:45:30 -06:00
parent 622bfd4f08
commit 0aa76d3e5b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)
}