aboutsummaryrefslogtreecommitdiff
path: root/bin/process.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/process.php')
-rwxr-xr-xbin/process.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/process.php b/bin/process.php
index ababb03..1bae7c4 100755
--- a/bin/process.php
+++ b/bin/process.php
@@ -54,7 +54,7 @@ $url = Helper::addSchema($url);
$urlObj = new \Net_URL2($url);
$url = $urlObj->getNormalizedURL();
if (!Helper::isUrlAllowed($url)) {
- echo "Domain is not allowed; not crawling\n";
+ Log::error("Domain is not allowed; not crawling");
exit(2);
}
@@ -78,7 +78,7 @@ try {
$update = false;
foreach ($actions as $key => $action) {
- echo "step: $key\n";
+ Log::info("step: $key");
$update |= $action->run($retrieved);
}
@@ -86,10 +86,10 @@ try {
//FIXME: update index if it exists already
$fetcher->storeDoc($retrieved->url, $retrieved->esDoc);
} else {
- echo "Not updating\n";
+ Log::info("Not updating");
}
} catch (\Exception $e) {
- echo $e->getMessage() . "\n";
+ Log::error($e->getMessage());
exit(10);
}
?> \ No newline at end of file