Adding loggiing message to NewsUpdate job, a=chris
Adding loggiing message to NewsUpdate job, a=chris
diff --git a/src/library/IndexArchiveBundle.php b/src/library/IndexArchiveBundle.php
index 1fd3c53c9..889644f71 100644
--- a/src/library/IndexArchiveBundle.php
+++ b/src/library/IndexArchiveBundle.php
@@ -317,7 +317,7 @@ class IndexArchiveBundle implements CrawlConstants
$this->generation_info['CURRENT'] =
$this->generation_info['ACTIVE'];
}
- $current_index_shard_file = $this->dir_name.
+ $current_index_shard_file = $this->dir_name .
"/posting_doc_shards/index". $this->generation_info['CURRENT'];
if (file_exists($current_index_shard_file)) {
if (isset($this->generation_info['DISK_BASED']) &&
diff --git a/src/library/IndexShard.php b/src/library/IndexShard.php
index dcd083247..80ad25491 100644
--- a/src/library/IndexShard.php
+++ b/src/library/IndexShard.php
@@ -423,7 +423,7 @@ class IndexShard extends PersistentStructure implements
public function getWordInfo($word_id, $raw = false, $shift = 0)
{
if ($raw == false) {
- //get rid of out modfied base64 encoding
+ //get rid of out modified base64 encoding
$word_id = unbase64Hash($word_id);
}
$is_disk = $this->read_only_from_disk;
diff --git a/src/library/media_jobs/NewsUpdateJob.php b/src/library/media_jobs/NewsUpdateJob.php
index b86c67e16..6dd29fd2c 100644
--- a/src/library/media_jobs/NewsUpdateJob.php
+++ b/src/library/media_jobs/NewsUpdateJob.php
@@ -96,6 +96,7 @@ class NewsUpdateJob extends MediaJob
L\crawlLog("Performing news feeds update");
return true;
}
+ L\crawlLog("Time since last update not exceeded, skipping news update");
return false;
}
/**