Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: thatInfrastructureGuy <[email protected]>
  • Loading branch information
thatInfrastructureGuy committed Jan 19, 2021
1 parent 8f1a201 commit b491ce0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions gzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b491ce0

Please sign in to comment.