From 65729012b6164ed976f8706d51665e6f11557d2f Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 10 Feb 2015 15:43:39 -0400 Subject: [PATCH] Fix logs display --- lib/actions/logs.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/actions/logs.coffee b/lib/actions/logs.coffee index a5fa1baa..a7a28aae 100644 --- a/lib/actions/logs.coffee +++ b/lib/actions/logs.coffee @@ -47,5 +47,9 @@ exports.logs = tail: options.tail }, (error, message) -> return done(error) if error? - _.each(message, console.log) + if _.isArray(message) + _.each message, (line) -> + console.log(line) + else + console.log(message) return done()