Nested object iside array returns [Object] when using info.message
artur-grigoryan-cgn opened this issue · comments
Hi,
I'm using Strapi with winstor 3.11.
When i log this:
logger.error([{ a: "a", b: "b" }, { a: "a", b: "b" }, { c: [{ a: "a" },3] }]);
I get the followng the following output:
[LOGGER] 13.12.2023 - 09:48:42 error : [ { a: 'a', b: 'b' }, { a: 'a', b: 'b' }, { c: [ [Object], 3 ] } ]
It only appears in the console when I'm using ${info.message}
. Example:
winston.format.printf(
info => ` ${info.label} ${info.timestamp} ${info.level} : ${info.message}`
)