summaryrefslogtreecommitdiffstats
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
parentf2065b55cc452f5e76f46b314d0cc84f27367d86 (diff)
log unimportant errors on debug level
-rw-r--r--CHANGELOG1
-rw-r--r--appinfo/info.xml2
-rw-r--r--appinfo/version2
-rw-r--r--businesslayer/feedbusinesslayer.php9
4 files changed, 8 insertions, 6 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 033057010..2ca232cb2 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,6 @@
ownCloud-news (1.202)
* Fixed a bug in the API routes that would request an uneeded id when creating a feed
+* Log unimportant errors on debug level instead of error level
ownCloud-news (1.201)
* Add shortcut 'o' which opens the current article in a new tab
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 973d0b2ef..03a3f5bf2 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -5,6 +5,6 @@
<description>An RSS/Atom feed reader. Requires the App Framework app and backgroundjobs need to be enabled. See the README.rst in the apps top directory</description>
<licence>AGPL</licence>
<author>Alessandro Cosentino, Bernhard Posselt, Jan-Christoph Borchardt. Powered by SimplePie (Ryan Parman, Geoffrey Sneddon, Ryan McCue and contributors).</author>
- <version>1.201</version>
+ <version>1.202</version>
<require>5.0.6</require>
</info>
diff --git a/appinfo/version b/appinfo/version
index 6ef5c8c48..0cf512b11 100644
--- a/appinfo/version
+++ b/appinfo/version
@@ -1 +1 @@
-1.201
+1.202
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);