summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-03 15:03:27 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-03 15:03:27 +0200
commit7b628a3e4d105f2e571d0fe142d59f201d6a10d0 (patch)
tree5080a6047e36534e0e1d1020e50185319cbd91d3
parent87305649c7f3fa6b5f250aaa6bd4a7769b72b6aa (diff)
log feed errors
-rw-r--r--businesslayer/feedbusinesslayer.php1
-rw-r--r--tests/unit/businesslayer/FeedBusinessLayerTest.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/businesslayer/feedbusinesslayer.php b/businesslayer/feedbusinesslayer.php
index 7683d769f..1f5d5d6c7 100644
--- a/businesslayer/feedbusinesslayer.php
+++ b/businesslayer/feedbusinesslayer.php
@@ -176,6 +176,7 @@ class FeedBusinessLayer extends BusinessLayer {
// failed updating is not really a problem, so only log it
$this->api->log('Can not update feed with url' . $existingFeed->getUrl() .
': Not found or bad source');
+ $this->api->log($ex->getMessage());
}
return $this->mapper->find($feedId, $userId);
diff --git a/tests/unit/businesslayer/FeedBusinessLayerTest.php b/tests/unit/businesslayer/FeedBusinessLayerTest.php
index e6fb5bb7b..34a6030e4 100644
--- a/tests/unit/businesslayer/FeedBusinessLayerTest.php
+++ b/tests/unit/businesslayer/FeedBusinessLayerTest.php
@@ -462,7 +462,7 @@ class FeedBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility {
$this->fetcher->expects($this->once())
->method('fetch')
->will($this->throwException($ex));
- $this->api->expects($this->once())
+ $this->api->expects($this->any())
->method('log');
$this->mapper->expects($this->at(1))