Navigation Menu

Skip to content

Commit

Permalink
[fix] Handle streaming logs connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
julianduque committed Aug 7, 2013
1 parent eda507e commit ff738e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/jitsu/commands/logs.js
Expand Up @@ -16,6 +16,7 @@ logs.usage = [
'The default number of lines to show is 10',
'',
'Example usages:',
'jitsu logs tail',
'jitsu logs app <app name>',
'jitsu logs app <app name> <number of lines to show>'
];
Expand Down Expand Up @@ -63,6 +64,9 @@ logs.tail = function (appName, callback) {
if (err) return callback(err);

socket.on('data', printLog);
socket.on('error', function (err) {
return callback(err);
});
});
});
});
Expand Down

0 comments on commit ff738e9

Please sign in to comment.