Skip to content

Commit

Permalink
log: dont print if the line is empty #3193
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud committed Oct 25, 2017
1 parent fb8fbe1 commit 4f5566e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/API/Log.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Log.stream = function(Client, id, raw, timestamp, exclusive) {
return;

lines.forEach(function(line) {
if (!line) return;
if (!line || line.length === 0) return;

if (raw)
return process.stdout.write(util.format(line) + '\n');
Expand Down Expand Up @@ -172,7 +172,7 @@ Log.devStream = function(Client, id, raw, timestamp, exclusive) {
return;

lines.forEach(function(line) {
if (!line) return;
if (!line || line.length === 0) return;

if (raw)
return process.stdout.write(util.format(line) + '\n');
Expand Down Expand Up @@ -255,9 +255,7 @@ Log.formatStream = function(Client, id, raw, timestamp, exclusive) {
return;

lines.forEach(function(line) {
if (!line) {
return;
}
if (!line || line.length === 0) return;

if (!raw) {
if (timestamp)
Expand Down

0 comments on commit 4f5566e

Please sign in to comment.