aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-08-01 22:18:12 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-08-01 22:18:12 +0530
commit6fbbb30a817a44fed1fb90ee35fca0d1caf83fcb (patch)
tree16c1214c65c36ceebf6d4b3254ef1b06eb093489 /phpBB
parentfbd75775efbf1f9d98b29835d1ef97b8cf4d55d4 (diff)
downloadforums-6fbbb30a817a44fed1fb90ee35fca0d1caf83fcb.tar
forums-6fbbb30a817a44fed1fb90ee35fca0d1caf83fcb.tar.gz
forums-6fbbb30a817a44fed1fb90ee35fca0d1caf83fcb.tar.bz2
forums-6fbbb30a817a44fed1fb90ee35fca0d1caf83fcb.tar.xz
forums-6fbbb30a817a44fed1fb90ee35fca0d1caf83fcb.zip
[ticket/11032] add sphinx errors to error log
PHPBB3-11032
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/search/fulltext_sphinx.php5
-rw-r--r--phpBB/language/en/acp/common.php1
2 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/search/fulltext_sphinx.php b/phpBB/includes/search/fulltext_sphinx.php
index 8371f6b377..a2ebf1eb69 100644
--- a/phpBB/includes/search/fulltext_sphinx.php
+++ b/phpBB/includes/search/fulltext_sphinx.php
@@ -492,6 +492,11 @@ class phpbb_search_fulltext_sphinx
$this->sphinx->SetLimits($start, (int) $per_page, SPHINX_MAX_MATCHES);
$result = $this->sphinx->Query($search_query_prefix . str_replace('&quot;', '"', $this->search_query), $this->indexes);
+ if ($this->sphinx->GetLastError())
+ {
+ add_log('critical', 'LOG_SPHINX_ERROR', $this->sphinx->GetLastError());
+ }
+
// Could be connection to localhost:9312 failed (errno=111,
// msg=Connection refused) during rotate, retry if so
$retries = SPHINX_CONNECT_RETRIES;
diff --git a/phpBB/language/en/acp/common.php b/phpBB/language/en/acp/common.php
index 5cebcc89d7..04df897dba 100644
--- a/phpBB/language/en/acp/common.php
+++ b/phpBB/language/en/acp/common.php
@@ -690,6 +690,7 @@ $lang = array_merge($lang, array(
'LOG_SEARCH_INDEX_CREATED' => '<strong>Created search index for</strong><br />» %s',
'LOG_SEARCH_INDEX_REMOVED' => '<strong>Removed search index for</strong><br />» %s',
+ 'LOG_SPHINX_ERROR' => '<strong>Sphinx Error</strong><br />» %s',
'LOG_STYLE_ADD' => '<strong>Added new style</strong><br />» %s',
'LOG_STYLE_DELETE' => '<strong>Deleted style</strong><br />» %s',
'LOG_STYLE_EDIT_DETAILS' => '<strong>Edited style</strong><br />» %s',