Skip to content
Extraits de code Groupes Projets
Valider 756fb588 rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

Replaced usage of Log::verbose() with Log::debug()

The "verbose" level doesn't exist in PSR-3, the lowest one is "debug".
parent a96baf01
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -599,14 +599,14 @@ class Archive ...@@ -599,14 +599,14 @@ class Archive
// we already know there are no stats for this period // we already know there are no stats for this period
// we add one day to make sure we don't miss the day of the website creation // we add one day to make sure we don't miss the day of the website creation
if ($twoDaysAfterPeriod->isEarlier($site->getCreationDate())) { if ($twoDaysAfterPeriod->isEarlier($site->getCreationDate())) {
Log::verbose("Archive site %s, %s (%s) skipped, archive is before the website was created.", Log::debug("Archive site %s, %s (%s) skipped, archive is before the website was created.",
$idSite, $period->getLabel(), $period->getPrettyString()); $idSite, $period->getLabel(), $period->getPrettyString());
continue; continue;
} }
// if the starting date is in the future we know there is no visiidsite = ?t // if the starting date is in the future we know there is no visiidsite = ?t
if ($twoDaysBeforePeriod->isLater($today)) { if ($twoDaysBeforePeriod->isLater($today)) {
Log::verbose("Archive site %s, %s (%s) skipped, archive is after today.", Log::debug("Archive site %s, %s (%s) skipped, archive is after today.",
$idSite, $period->getLabel(), $period->getPrettyString()); $idSite, $period->getLabel(), $period->getPrettyString());
continue; continue;
} }
......
...@@ -180,7 +180,7 @@ class Parameters ...@@ -180,7 +180,7 @@ class Parameters
if ($isTemporary) { if ($isTemporary) {
$temporary = 'temporary archive'; $temporary = 'temporary archive';
} }
Log::verbose( Log::debug(
"%s archive, idSite = %d (%s), segment '%s', report = '%s', UTC datetime [%s -> %s]", "%s archive, idSite = %d (%s), segment '%s', report = '%s', UTC datetime [%s -> %s]",
$this->getPeriod()->getLabel(), $this->getPeriod()->getLabel(),
$this->getSite()->getId(), $this->getSite()->getId(),
......
...@@ -97,7 +97,7 @@ class PluginsArchiver ...@@ -97,7 +97,7 @@ class PluginsArchiver
$archiver = new $archiverClass($this->archiveProcessor); $archiver = new $archiverClass($this->archiveProcessor);
if (!$archiver->isEnabled()) { if (!$archiver->isEnabled()) {
Log::verbose("PluginsArchiver::%s: Skipping archiving for plugin '%s'.", __FUNCTION__, $pluginName); Log::debug("PluginsArchiver::%s: Skipping archiving for plugin '%s'.", __FUNCTION__, $pluginName);
continue; continue;
} }
...@@ -120,7 +120,7 @@ class PluginsArchiver ...@@ -120,7 +120,7 @@ class PluginsArchiver
$pluginName $pluginName
); );
} else { } else {
Log::verbose("PluginsArchiver::%s: Not archiving reports for plugin '%s'.", __FUNCTION__, $pluginName); Log::debug("PluginsArchiver::%s: Not archiving reports for plugin '%s'.", __FUNCTION__, $pluginName);
} }
Manager::getInstance()->deleteAll($latestUsedTableId); Manager::getInstance()->deleteAll($latestUsedTableId);
......
...@@ -710,7 +710,7 @@ class Db ...@@ -710,7 +710,7 @@ class Db
private static function logSql($functionName, $sql, $parameters = array()) private static function logSql($functionName, $sql, $parameters = array())
{ {
// NOTE: at the moment we dont log bind in order to avoid sensitive information leaks // NOTE: at the moment we don't log parameters in order to avoid sensitive information leaks
Log::verbose("Db::%s() executing SQL: %s", $functionName, $sql); Log::debug("Db::%s() executing SQL: %s", $functionName, $sql);
} }
} }
...@@ -229,7 +229,7 @@ class FrontController extends Singleton ...@@ -229,7 +229,7 @@ class FrontController extends Singleton
Profiler::printQueryCount(); Profiler::printQueryCount();
} }
} catch (Exception $e) { } catch (Exception $e) {
Log::verbose($e); Log::debug($e);
} }
} }
......
...@@ -430,7 +430,7 @@ class Manager extends Singleton ...@@ -430,7 +430,7 @@ class Manager extends Singleton
*/ */
public function installLoadedPlugins() public function installLoadedPlugins()
{ {
Log::verbose("Loaded plugins: " . implode(", ", array_keys($this->getLoadedPlugins()))); Log::debug("Loaded plugins: " . implode(", ", array_keys($this->getLoadedPlugins())));
$messages = array(); $messages = array();
foreach ($this->getLoadedPlugins() as $plugin) { foreach ($this->getLoadedPlugins() as $plugin) {
try { try {
......
...@@ -232,7 +232,7 @@ class View implements ViewInterface ...@@ -232,7 +232,7 @@ class View implements ViewInterface
$user = APIUsersManager::getInstance()->getUser($this->userLogin); $user = APIUsersManager::getInstance()->getUser($this->userLogin);
$this->userAlias = $user['alias']; $this->userAlias = $user['alias'];
} catch (Exception $e) { } catch (Exception $e) {
Log::verbose($e); Log::debug($e);
// can fail, for example at installation (no plugin loaded yet) // can fail, for example at installation (no plugin loaded yet)
} }
......
...@@ -89,7 +89,7 @@ class Piwik_TestingEnvironment ...@@ -89,7 +89,7 @@ class Piwik_TestingEnvironment
if (isset($_SERVER['QUERY_STRING']) if (isset($_SERVER['QUERY_STRING'])
&& !$this->dontUseTestConfig && !$this->dontUseTestConfig
) { ) {
@\Piwik\Log::verbose("Test Environment Variables for (%s):\n%s", $_SERVER['QUERY_STRING'], print_r($this->behaviorOverrideProperties, true)); @\Piwik\Log::debug("Test Environment Variables for (%s):\n%s", $_SERVER['QUERY_STRING'], print_r($this->behaviorOverrideProperties, true));
} }
} catch (Exception $ex) { } catch (Exception $ex) {
// ignore // ignore
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter