Skip to content

Commit

Permalink
Merge branch 'MDL-53271-master' of git://github.com/merrill-oakland/m…
Browse files Browse the repository at this point in the history
…oodle
  • Loading branch information
andrewnicols committed Mar 9, 2016
2 parents c17e003 + 63d5007 commit 4f9303c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions search/engine/solr/classes/engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ public function add_document($doc) {
$result = $this->get_search_client()->addDocument($solrdoc, true, static::AUTOCOMMIT_WITHIN);
} catch (\SolrClientException $e) {
debugging('Solr client error adding document with id ' . $doc['id'] . ': ' . $e->getMessage(), DEBUG_DEVELOPER);
} catch (\SolrServerException $e) {
// We only use the first line of the message, as it's a fully java stacktrace behind it.
$msg = strtok($e->getMessage(), "\n");
debugging('Solr server error adding document with id ' . $doc['id'] . ': ' . $msg, DEBUG_DEVELOPER);
}
}

Expand Down

0 comments on commit 4f9303c

Please sign in to comment.