From 7137c0693a6f5bbaa1b0cbc8e7fc0c82b2e95af4 Mon Sep 17 00:00:00 2001 From: Radhi Fadlillah Date: Mon, 10 Jun 2019 08:52:58 +0700 Subject: [PATCH] Better(?) log messages --- pkg/warc/internal/archiver/archiver.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/warc/internal/archiver/archiver.go b/pkg/warc/internal/archiver/archiver.go index 2b8d38d..8929ce3 100644 --- a/pkg/warc/internal/archiver/archiver.go +++ b/pkg/warc/internal/archiver/archiver.go @@ -132,7 +132,12 @@ func (arc *Archiver) archive(res ResourceURL) { arc.Unlock() // Save content to storage - arc.Logf(infoLog, "Downloaded %s, parent %s", res.DownloadURL, res.Parent) + arc.Logf(infoLog, "Downloaded %s\n"+ + "\tParent %s\n"+ + "\tSize %d Bytes\n", + res.DownloadURL, + res.Parent, + resp.ContentLength) result.ContentType = cType err = arc.SaveToStorage(result)