Adding more Mirror log message, a=chris
Adding more Mirror log message, a=chris
diff --git a/bin/mirror.php b/bin/mirror.php
index 1b51032e1..1d1ca806b 100644
--- a/bin/mirror.php
+++ b/bin/mirror.php
@@ -217,7 +217,7 @@ class Mirror implements CrawlConstants
if($this->start_sync <= $this->last_sync &&
$this->last_sync + MIRROR_SYNC_FREQUENCY > $time) {
$request .= "&a=syncList";
- crawlLog("Getting Sync List..");
+ crawlLog("Getting Sync List...");
$info_string = FetchUrl::getPage($request, NULL, true);
if($info_string === false) {
return false;
@@ -235,9 +235,13 @@ class Mirror implements CrawlConstants
$info[self::STATUS] = self::CONTINUE_STATE;
if($time - $this->last_notify > MIRROR_NOTIFY_FREQUENCY) {
$request .= "&a=syncNotify";
+ crawlLog("Current time $time, last notify time ".
+ $this->last_notify."...");
FetchUrl::getPage($request, NULL, true);
$this->last_notify = $time;
crawlLog("Notifying master that mirror is alive..");
+ } else {
+ crawlLog("So not notifying scheduler");
}
}
if(count($this->sync_schedule) == 0) {