From b491ce04c676a169d4f0cb3ec03799c9e4ea07f8 Mon Sep 17 00:00:00 2001 From: thatInfrastructureGuy Date: Mon, 18 Jan 2021 23:14:11 -0800 Subject: [PATCH] debug logs Signed-off-by: thatInfrastructureGuy --- csv.go | 1 + gzip.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/csv.go b/csv.go index 3225997..c76a14d 100644 --- a/csv.go +++ b/csv.go @@ -96,6 +96,7 @@ func (c *Converter) rowToCSV(toCSV chan []string, toGzip chan *csvBuf, wg *sync. data: csvBuffer.Bytes(), lastPart: true, } + fmt.Println(string(csvBuffer.Bytes())) // Reset buffer csvBuffer.Reset() diff --git a/gzip.go b/gzip.go index 13be031..0d6198f 100644 --- a/gzip.go +++ b/gzip.go @@ -46,6 +46,8 @@ func (c *Converter) csvToGzip(toGzip chan *csvBuf, w io.Writer, wg *sync.WaitGro return } + fmt.Println(string(csvBuf.data)) + if csvBuf.lastPart { err = zw.Close() if err != nil {