diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-11-10 20:52:35 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-11-10 20:52:35 +0100 |
| commit | 696fcd7ce4d495e356667019493bf312e2a6e47b (patch) | |
| tree | 3e8d60dad08dbe31660f2532d8ce893d35d50130 /src/phinde/Fetcher.php | |
| parent | 9ff01ebe8cde0a07ad2a480d1a45eb1a29cb113d (diff) | |
| download | phinde-696fcd7ce4d495e356667019493bf312e2a6e47b.tar.gz phinde-696fcd7ce4d495e356667019493bf312e2a6e47b.zip | |
add log class
Diffstat (limited to 'src/phinde/Fetcher.php')
| -rw-r--r-- | src/phinde/Fetcher.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phinde/Fetcher.php b/src/phinde/Fetcher.php index 5ea0cf2..dccb118 100644 --- a/src/phinde/Fetcher.php +++ b/src/phinde/Fetcher.php @@ -43,7 +43,7 @@ class Fetcher $res = $req->send(); if ($res->getStatus() === 304) { //not modified since last time, so don't crawl again - echo "Not modified since last fetch\n"; + Log::info("Not modified since last fetch"); return false; } else if ($res->getStatus() !== 200) { throw new \Exception( @@ -79,7 +79,7 @@ class Fetcher public function storeDoc($url, $esDoc) { - echo "Store $url\n"; + Log::info("Store $url"); $esDoc->status->processed = gmdate('c'); $r = new Elasticsearch_Request( $GLOBALS['phinde']['elasticsearch'] . 'document/' |
