use tendermint/log15

This commit is contained in:
Jae Kwon
2014-12-29 19:41:46 -08:00
parent 07b5b7a8f2
commit 3215cbf0d5
12 changed files with 22 additions and 19 deletions

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())