summaryrefslogtreecommitdiffstats
path: root/businesslayer
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-07-23 13:53:46 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-07-23 13:54:32 +0200
commit8b10144d7caf56fd94b9430a409f29c64170b195 (patch)
treef9dc1b0faf016c3a7adea3c8f11195b9f9226107 /businesslayer
parentf2065b55cc452f5e76f46b314d0cc84f27367d86 (diff)
log unimportant errors on debug level
Diffstat (limited to 'businesslayer')
-rw-r--r--businesslayer/feedbusinesslayer.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/businesslayer/feedbusinesslayer.php b/businesslayer/feedbusinesslayer.php
index 2d61dfe61..d3b32d1c6 100644
--- a/businesslayer/feedbusinesslayer.php
+++ b/businesslayer/feedbusinesslayer.php
@@ -118,7 +118,7 @@ class FeedBusinessLayer extends BusinessLayer {
return $feed;
} catch(FetcherException $ex){
- $this->api->log($ex->getMessage());
+ $this->api->log($ex->getMessage(), 'debug');
throw new BusinessLayerException(
$this->api->getTrans()->t(
'Can not add feed: URL does not exist or has invalid xml'));
@@ -136,7 +136,8 @@ class FeedBusinessLayer extends BusinessLayer {
try {
$this->update($feed->getId(), $feed->getUserId());
} catch(BusinessLayerException $ex){
- $this->api->log('Could not update feed ' . $ex->getMessage());
+ $this->api->log('Could not update feed ' . $ex->getMessage(),
+ 'debug');
}
}
}
@@ -180,8 +181,8 @@ class FeedBusinessLayer extends BusinessLayer {
} catch(FetcherException $ex){
// 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());
+ ': Not found or bad source', 'debug');
+ $this->api->log($ex->getMessage(), 'debug');
}
return $this->mapper->find($feedId, $userId);