Browse Source

use tendermint/log15

pull/9/head
Jae Kwon 10 years ago
parent
commit
3215cbf0d5
12 changed files with 22 additions and 19 deletions
  1. +2
    -2
      alert/log.go
  2. +2
    -2
      binary/log.go
  3. +2
    -0
      binary/reflect.go
  4. +2
    -2
      cmd/log.go
  5. +2
    -2
      consensus/log.go
  6. +1
    -0
      consensus/reactor.go
  7. +2
    -2
      mempool/log.go
  8. +1
    -1
      p2p/connection.go
  9. +2
    -2
      p2p/log.go
  10. +2
    -2
      p2p/upnp/log.go
  11. +2
    -2
      rpc/log.go
  12. +2
    -2
      state/log.go

+ 2
- 2
alert/log.go View File

@ -1,7 +1,7 @@
package alert
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "alert")
var log = log15.New("module", "alert")

+ 2
- 2
binary/log.go View File

@ -1,7 +1,7 @@
package binary
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "binary")
var log = log15.New("module", "binary")

+ 2
- 0
binary/reflect.go View File

@ -88,6 +88,8 @@ func RegisterType(info *TypeInfo) *TypeInfo {
func readReflect(rv reflect.Value, rt reflect.Type, r Unreader, n *int64, err *error) {
log.Debug("Read reflect", "type", rt)
// First, create a new struct if rv is nil pointer.
if rt.Kind() == reflect.Ptr && rv.IsNil() {
newRv := reflect.New(rt.Elem())


+ 2
- 2
cmd/log.go View File

@ -1,7 +1,7 @@
package main
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "main")
var log = log15.New("module", "main")

+ 2
- 2
consensus/log.go View File

@ -1,7 +1,7 @@
package consensus
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "consensus")
var log = log15.New("module", "consensus")

+ 1
- 0
consensus/reactor.go View File

@ -650,6 +650,7 @@ func DecodeMessage(bz []byte) (msgType byte, msg interface{}, err error) {
msg = ReadBinary(&CommitStepMessage{}, r, n, &err)
// Messages of data
case msgTypeProposal:
r.ReadByte() // Consume the byte
msg = ReadBinary(&Proposal{}, r, n, &err)
case msgTypePart:
msg = ReadBinary(&PartMessage{}, r, n, &err)


+ 2
- 2
mempool/log.go View File

@ -1,7 +1,7 @@
package mempool
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "mempool")
var log = log15.New("module", "mempool")

+ 1
- 1
p2p/connection.go View File

@ -13,7 +13,7 @@ import (
flow "code.google.com/p/mxk/go1/flowcontrol"
. "github.com/tendermint/tendermint/binary"
. "github.com/tendermint/tendermint/common"
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
const (


+ 2
- 2
p2p/log.go View File

@ -1,7 +1,7 @@
package p2p
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "p2p")
var log = log15.New("module", "p2p")

+ 2
- 2
p2p/upnp/log.go View File

@ -1,7 +1,7 @@
package upnp
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "upnp")
var log = log15.New("module", "upnp")

+ 2
- 2
rpc/log.go View File

@ -1,7 +1,7 @@
package rpc
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "rpc")
var log = log15.New("module", "rpc")

+ 2
- 2
state/log.go View File

@ -1,7 +1,7 @@
package state
import (
"gopkg.in/inconshreveable/log15.v2"
"github.com/tendermint/log15"
)
var log = log15.New("module", "state")
var log = log15.New("module", "state")

Loading…
Cancel
Save