Skip to content

Commit e76f67d

Browse files
committed
More logging
1 parent 0261b9a commit e76f67d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/KubernetesCluster.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,13 @@ protected function watchPath(string $path, Closure $callback, array $query = ['p
263263
*/
264264
protected function watchLogsPath(string $path, Closure $callback, array $query = ['pretty' => 1])
265265
{
266+
\var_dump("Starting0: " . \microtime(true));
266267
$sock = $this->createSocketConnection($this->getCallableUrl($path, $query));
267268

268269
$data = null;
269270

270-
\var_dump("Starting: " . \microtime(true));
271-
while (($data = fgets($sock)) == true) {
271+
\var_dump("Starting1: " . \microtime(true));
272+
while (($data = fgets($sock, 100)) == true) {
272273
\var_dump("Chunk part: " . \microtime(true));
273274
$call = call_user_func($callback, $data);
274275

0 commit comments

Comments
 (0)