From 14959799832df7cb6baa5e63759af5fb585d9028 Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Thu, 6 Aug 2020 09:33:09 +0200 Subject: [PATCH] etl: only print file sizes for actual files, not RAM (#877) --- common/etl/etl.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/etl/etl.go b/common/etl/etl.go index e7d7a4b7f..d63e60506 100644 --- a/common/etl/etl.go +++ b/common/etl/etl.go @@ -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 {