Better(?) log messages

This commit is contained in:
Radhi Fadlillah 2019-06-10 08:52:58 +07:00
parent a794dd8ea2
commit 7137c0693a

View file

@ -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)