From 572ca9953c2edc321ea0c8ddc9cb4e4432520ede Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 18 Aug 2021 16:37:47 +0300 Subject: [PATCH] Update log.js --- scripts/helpers/log.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/helpers/log.js b/scripts/helpers/log.js index a2e8fe0a2e..3120110b80 100644 --- a/scripts/helpers/log.js +++ b/scripts/helpers/log.js @@ -1,7 +1,8 @@ const log = {} -log.print = function (string) { - process.stdout.write(string) +log.print = function (message) { + if (typeof message === 'object') message = JSON.stringify(message, null, 2) + process.stdout.write(message) } log.start = function () {