Skip to content

Commit 79a8cb6

Browse files
author
Frank Schmid
committed
Fixed crash with logs --tail
1 parent f539824 commit 79a8cb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/logs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = {
158158
if (!logStreamNames || !logStreamNames.length) {
159159
if (this.options.tail) {
160160
return setTimeout((() => getLogStreams()
161-
.then(nextLogStreamNames => this.logsShowLogs(nextLogStreamNames, formatter))),
161+
.then(nextLogStreamNames => this.logsShowLogs(nextLogStreamNames, formatter, getLogStreams))),
162162
this.options.interval);
163163
}
164164
}
@@ -209,7 +209,7 @@ module.exports = {
209209
}
210210

211211
return setTimeout((() => getLogStreams()
212-
.then(nextLogStreamNames => this.logsShowLogs(nextLogStreamNames, formatter))),
212+
.then(nextLogStreamNames => this.logsShowLogs(nextLogStreamNames, formatter, getLogStreams))),
213213
this.options.interval);
214214
}
215215

0 commit comments

Comments
 (0)