Cleanup debug output from JsonReader
This commit is contained in:
parent
365050026f
commit
b6f5239ea1
@ -30,7 +30,7 @@ class JsonReader implements ReaderInterface, Iterator
|
|||||||
if ($this->currentFile === $this->loadedFile) return;
|
if ($this->currentFile === $this->loadedFile) return;
|
||||||
|
|
||||||
if ($this->currentFile >= count($this->files)) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
$file = $this->files[$this->currentFile];
|
$file = $this->files[$this->currentFile];
|
||||||
@ -38,7 +38,7 @@ class JsonReader implements ReaderInterface, Iterator
|
|||||||
|
|
||||||
$this->loadData($json);
|
$this->loadData($json);
|
||||||
$this->loadedFile = $this->currentFile;
|
$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)
|
private function loadData(array $data)
|
||||||
@ -53,7 +53,7 @@ class JsonReader implements ReaderInterface, Iterator
|
|||||||
$this->currentFile = 0;
|
$this->currentFile = 0;
|
||||||
$this->currentIndex = 0;
|
$this->currentIndex = 0;
|
||||||
$this->counter = 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();
|
$this->checkLoadedSlice();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ class JsonReader implements ReaderInterface, Iterator
|
|||||||
if ($this->currentIndex >= count($this->data)) {
|
if ($this->currentIndex >= count($this->data)) {
|
||||||
$this->currentFile++;
|
$this->currentFile++;
|
||||||
$this->currentIndex = 0;
|
$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();
|
//$this->checkLoadedSlice();
|
||||||
|
Loading…
Reference in New Issue
Block a user