diff options
-rw-r--r-- | businesslayer/feedbusinesslayer.php | 1 | ||||
-rw-r--r-- | tests/unit/businesslayer/FeedBusinessLayerTest.php | 2 |
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)) |