Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-11-07 08:57:58 +0300
committermattab <matthieu.aubry@gmail.com>2014-11-07 08:57:58 +0300
commit4a52a7f360eba70f66a1d6880aba74dc552a4a0d (patch)
treeea76cdfb1eb0ce70b193f477bb76be2d1285c613
parentc90cb332989fc60f37be6f85db15cf2d13d413f7 (diff)
refs #6612 Set default logger level to ERROR so that only real errors break the archiver (and not simple warnings)
-rw-r--r--config/global.ini.php2
-rw-r--r--core/Plugin/Visualization.php2
-rw-r--r--core/Session.php2
-rwxr-xr-xplugins/UserCountry/GeoIPAutoUpdater.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/config/global.ini.php b/config/global.ini.php
index bc14fce1e4..7c9d9e1bc0 100644
--- a/config/global.ini.php
+++ b/config/global.ini.php
@@ -58,7 +58,7 @@ log_writers[] = screen
; log level, everything logged w/ this level or one of greater severity
; will be logged. everything else will be ignored. possible values are:
; NONE, ERROR, WARN, INFO, DEBUG, VERBOSE
-log_level = WARN
+log_level = ERROR
; if set to 1, only requests done in CLI mode (eg. the ./console core:archive cron run) will be logged
; NOTE: log_only_when_debug_parameter will also be checked for
diff --git a/core/Plugin/Visualization.php b/core/Plugin/Visualization.php
index e7e79c62e2..938bcb7a4d 100644
--- a/core/Plugin/Visualization.php
+++ b/core/Plugin/Visualization.php
@@ -177,7 +177,7 @@ class Visualization extends ViewDataTable
} catch (NoAccessException $e) {
throw $e;
} catch (\Exception $e) {
- Log::warning("Failed to get data from API: " . $e->getMessage() . "\n" . $e->getTraceAsString());
+ Log::error("Failed to get data from API: " . $e->getMessage() . "\n" . $e->getTraceAsString());
$message = $e->getMessage();
if (\Piwik_ShouldPrintBackTraceWithMessage()) {
diff --git a/core/Session.php b/core/Session.php
index 24595cd764..d8fa47b4d2 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -115,7 +115,7 @@ class Session extends Zend_Session
parent::start();
register_shutdown_function(array('Zend_Session', 'writeClose'), true);
} catch (Exception $e) {
- Log::warning('Unable to start session: ' . $e->getMessage());
+ Log::error('Unable to start session: ' . $e->getMessage());
$enableDbSessions = '';
if (DbHelper::isInstalled()) {
diff --git a/plugins/UserCountry/GeoIPAutoUpdater.php b/plugins/UserCountry/GeoIPAutoUpdater.php
index d12be6aace..64b69be435 100755
--- a/plugins/UserCountry/GeoIPAutoUpdater.php
+++ b/plugins/UserCountry/GeoIPAutoUpdater.php
@@ -538,7 +538,7 @@ class GeoIPAutoUpdater extends ScheduledTask
self::getTestLocationCatchPhpErrors($provider);
if (self::$unzipPhpError !== null) {
list($errno, $errstr, $errfile, $errline) = self::$unzipPhpError;
- Log::warning("GeoIPAutoUpdater: Encountered PHP error when performing redundant tests on GeoIP "
+ Log::error("GeoIPAutoUpdater: Encountered PHP error when performing redundant tests on GeoIP "
. "%s database: %s: %s on line %s of %s.", $type, $errno, $errstr, $errline, $errfile);
// get the current filename for the DB and an available new one to rename it to