etl: only print file sizes for actual files, not RAM (#877)

This commit is contained in:
Igor Mandrigin 2020-08-06 09:33:09 +02:00 committed by GitHub
parent 25ec16f223
commit 1495979983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,9 @@ func disposeProviders(providers []dataProvider) {
} }
totalSize += providerSize 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 { type bucketState struct {