mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-31 08:25:36 +00:00
Print logs correctly, as they recently got a message field added
This commit is contained in:
parent
69039d21c2
commit
9a3c844336
@ -35,10 +35,10 @@
|
||||
}
|
||||
if (_.isArray(message)) {
|
||||
_.each(message, function(line) {
|
||||
return console.log(line);
|
||||
return console.log(line.message);
|
||||
});
|
||||
} else {
|
||||
console.log(message);
|
||||
console.log(message.message);
|
||||
}
|
||||
return done();
|
||||
});
|
||||
|
@ -50,7 +50,7 @@ exports.logs =
|
||||
return done(error) if error?
|
||||
if _.isArray(message)
|
||||
_.each message, (line) ->
|
||||
console.log(line)
|
||||
console.log(line.message)
|
||||
else
|
||||
console.log(message)
|
||||
console.log(message.message)
|
||||
return done()
|
||||
|
Loading…
x
Reference in New Issue
Block a user