This commit is contained in:
Jan Prochazka 2024-09-12 08:43:34 +02:00
parent fb2b47615f
commit e54bd1da3f

View File

@ -11,7 +11,7 @@ global.console = {
log: (...messages) => { log: (...messages) => {
try { try {
const parsedMessage = JSON.parse(messages[0]); const parsedMessage = JSON.parse(messages[0]);
process.stdout.write(pretty(parsedMessage) + '\n'); process.stdout.write(pretty(parsedMessage));
} catch (error) { } catch (error) {
process.stdout.write(messages.join(' ') + '\n'); process.stdout.write(messages.join(' ') + '\n');
} }