fix(objects): use proper seq log templating (#2384)

* fix(objects): use proper seq log templating

* fix(objects): log message temp variable
This commit is contained in:
Gergő Jedlicska
2024-06-18 10:17:50 +02:00
committed by GitHub
parent ef4bb520cf
commit 3be2d72e7d
3 changed files with 10 additions and 6 deletions
@@ -46,9 +46,11 @@ module.exports = (app) => {
req.log.error(err, `App error streaming objects`)
} else {
req.log.info(
`Streamed ${childrenList.length} objects (size: ${
gzipStream.bytesWritten / 1000000
} MB)`
{
childCount: childrenList.length,
mbWritten: gzipStream.bytesWritten / 1000000
},
'Streamed {childCount} objects (size: {mbWritten} MB)'
)
}
}