Cleanup debug output from JsonReader

This commit is contained in:
Chris 2022-09-03 15:31:28 +02:00
parent 365050026f
commit b6f5239ea1

View File

@ -30,7 +30,7 @@ class JsonReader implements ReaderInterface, Iterator
if ($this->currentFile === $this->loadedFile) return;
if ($this->currentFile >= count($this->files)) {
printf("Reached end of set at slice=%d\n", $this->currentFile);
//printf("Reached end of set at slice=%d\n", $this->currentFile);
return;
}
$file = $this->files[$this->currentFile];
@ -38,7 +38,7 @@ class JsonReader implements ReaderInterface, Iterator
$this->loadData($json);
$this->loadedFile = $this->currentFile;
printf("loaded slice %d: %s\n", $this->currentFile, $file);
//printf("loaded slice %d: %s\n", $this->currentFile, $file);
}
private function loadData(array $data)
@ -53,7 +53,7 @@ class JsonReader implements ReaderInterface, Iterator
$this->currentFile = 0;
$this->currentIndex = 0;
$this->counter = 0;
printf("Rewinding to slice=%d index=%d\n", $this->currentFile, $this->currentIndex);
//printf("Rewinding to slice=%d index=%d\n", $this->currentFile, $this->currentIndex);
$this->checkLoadedSlice();
}
@ -77,7 +77,7 @@ class JsonReader implements ReaderInterface, Iterator
if ($this->currentIndex >= count($this->data)) {
$this->currentFile++;
$this->currentIndex = 0;
printf("Rolling over to slice=%d index=%d counter=%d\n", $this->currentFile, $this->currentIndex, $this->counter);
//printf("Rolling over to slice=%d index=%d counter=%d\n", $this->currentFile, $this->currentIndex, $this->counter);
}
//$this->checkLoadedSlice();