Skip to content

Commit

Permalink
etl: only print file sizes for actual files, not RAM (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandrigin authored Aug 6, 2020
1 parent 25ec16f commit 1495979
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/etl/etl.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ func disposeProviders(providers []dataProvider) {
}
totalSize += providerSize
}
log.Info("etl: temp files removed successfully", "total size", datasize.ByteSize(totalSize).HumanReadable())
if totalSize > 0 {
log.Info("etl: temp files removed successfully", "total size", datasize.ByteSize(totalSize).HumanReadable())
}
}

type bucketState struct {
Expand Down

0 comments on commit 1495979

Please sign in to comment.