diff --git a/common/io/buffered_writer.go b/common/io/buffered_writer.go index ce144a8e8..8f542e0f9 100644 --- a/common/io/buffered_writer.go +++ b/common/io/buffered_writer.go @@ -78,9 +78,11 @@ func (this *BufferedWriter) Flush() error { } func (this *BufferedWriter) FlushWithoutLock() error { + fmt.Println("BufferedWriter flushing") defer this.buffer.Clear() for !this.buffer.IsEmpty() { nBytes, err := this.writer.Write(this.buffer.Value) + fmt.Printf("BufferedWriting flushed %d bytes.\n", nBytes) if err != nil { return err }