log messages

This commit is contained in:
Chris Lu
2020-04-30 03:05:34 -07:00
parent 8c73410a51
commit f9b6178b8f
5 changed files with 20 additions and 7 deletions

View File

@@ -133,6 +133,7 @@ func ReadEachLogEntry(r io.Reader, sizeBuf []byte, ns int64, eachLogEntryFn func
return fmt.Errorf("size %d bytes, expected 4 bytes", n)
}
size := util.BytesToUint32(sizeBuf)
// println("entry size", size)
entryData := make([]byte, size)
n, err = r.Read(entryData)
if err != nil {