summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rwxr-xr-xapp/controllers/configureController.php2
-rwxr-xr-xapp/controllers/feedController.php12
-rwxr-xr-xapp/controllers/indexController.php4
3 files changed, 9 insertions, 9 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php
index 815f3f5f4..2856bb89f 100755
--- a/app/controllers/configureController.php
+++ b/app/controllers/configureController.php
@@ -302,7 +302,7 @@ class configureController extends ActionController {
Request::_param ('feeds', $feeds);
Request::forward (array ('c' => 'feed', 'a' => 'massiveImport'));
} catch (OpmlException $e) {
- Minz_Log::record ($e->getMessage (), Minz_Log::ERROR);
+ Minz_Log::record ($e->getMessage (), Minz_Log::WARNING);
$notif = array (
'type' => 'bad',
diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php
index 0ba82631c..e54a2ac12 100755
--- a/app/controllers/feedController.php
+++ b/app/controllers/feedController.php
@@ -105,14 +105,14 @@ class feedController extends ActionController {
$params['id'] = $feed->id ();
}
} catch (BadUrlException $e) {
- Minz_Log::record ($e->getMessage (), Minz_Log::ERROR);
+ Minz_Log::record ($e->getMessage (), Minz_Log::WARNING);
$notif = array (
'type' => 'bad',
'content' => Translate::t ('invalid_url', $url)
);
Session::_param ('notification', $notif);
} catch (FeedException $e) {
- Minz_Log::record ($e->getMessage (), Minz_Log::ERROR);
+ Minz_Log::record ($e->getMessage (), Minz_Log::WARNING);
$notif = array (
'type' => 'bad',
'content' => Translate::t ('internal_problem_feed')
@@ -159,9 +159,9 @@ class feedController extends ActionController {
$nb_month_old = $this->view->conf->oldEntries ();
$date_min = time () - (60 * 60 * 24 * 30 * $nb_month_old);
if (rand(0, 30) === 1) {
- Minz_Log::record ('CleanOldEntries', Minz_Log::NOTICE); //TODO: Remove
+ Minz_Log::record ('CleanOldEntries', Minz_Log::DEBUG);
if ($entryDAO->cleanOldEntries ($date_min) > 0) {
- Minz_Log::record ('UpdateCachedValues', Minz_Log::NOTICE); //TODO: Remove
+ Minz_Log::record ('UpdateCachedValues', Minz_Log::DEBUG);
$feedDAO->updateCachedValues ();
}
}
@@ -196,7 +196,7 @@ class feedController extends ActionController {
$feedDAO->commit ();
$flux_update++;
} catch (FeedException $e) {
- Minz_Log::record ($e->getMessage (), Minz_Log::ERROR);
+ Minz_Log::record ($e->getMessage (), Minz_Log::NOTICE);
$feedDAO->updateLastUpdate ($feed->id (), 1);
}
@@ -298,7 +298,7 @@ class feedController extends ActionController {
}
} catch (FeedException $e) {
$error = true;
- Minz_Log::record ($e->getMessage (), Minz_Log::ERROR);
+ Minz_Log::record ($e->getMessage (), Minz_Log::WARNING);
}
}
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php
index 10c29bc7b..224d6fb9e 100755
--- a/app/controllers/indexController.php
+++ b/app/controllers/indexController.php
@@ -123,7 +123,7 @@ class indexController extends ActionController {
// Si on a récupéré aucun article "non lus"
// on essaye de récupérer tous les articles
if ($state === 'not_read' && $entries->isEmpty ()) { //TODO: Remove in v0.8
- Minz_Log::record ('Conflicting information about nbNotRead!', Minz_Log::NOTICE); //TODO: Consider adding a Minz_Log::DEBUG level
+ Minz_Log::record ('Conflicting information about nbNotRead!', Minz_Log::DEBUG);
$this->view->state = 'all';
$getter->_state ('all');
$getter->execute ();
@@ -131,7 +131,7 @@ class indexController extends ActionController {
}
$this->view->entryPaginator = $entries;
- } catch(EntriesGetterException $e) {
+ } catch (EntriesGetterException $e) {
Minz_Log::record ($e->getMessage (), Minz_Log::NOTICE);
Error::error (
404,