From de414de7a2beeefaadd97471ee907d20f42798d6 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 22 Nov 2016 00:36:47 +0100 Subject: [PATCH] test log --- common/io/buffered_writer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/io/buffered_writer.go b/common/io/buffered_writer.go index c6b33958..ce144a8e 100644 --- a/common/io/buffered_writer.go +++ b/common/io/buffered_writer.go @@ -4,6 +4,7 @@ import ( "io" "sync" + "fmt" "v2ray.com/core/common/alloc" ) @@ -52,6 +53,8 @@ func (this *BufferedWriter) Write(b []byte) (int, error) { return 0, io.ErrClosedPipe } + fmt.Printf("BufferedWriter writing: %v\n", b) + if !this.cached { return this.writer.Write(b) } @@ -59,6 +62,7 @@ func (this *BufferedWriter) Write(b []byte) (int, error) { if this.buffer.IsFull() { this.FlushWithoutLock() } + fmt.Printf("BufferedWriter content: %v\n", this.buffer.Value) return nBytes, nil }