Skip to content

Commit 717c379

Browse files
authored
refactor(console): add 10ms sleep for log tailing (#1796)
1 parent 30b2a6f commit 717c379

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/console/src/Output/TailReader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public function tail(string $path, ?Closure $format = null): void
2828
$newOffset = ftell($handle);
2929

3030
if ($newOffset <= $offset) {
31+
usleep(10_000);
32+
3133
continue;
3234
}
3335

0 commit comments

Comments
 (0)