Skip to content
Extraits de code Groupes Projets
Valider c8f74304 rédigé par mattab's avatar mattab
Parcourir les fichiers

Merge branch 'better_archive_logging'

parents cbc53ad2 a09ea477
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -1149,19 +1149,23 @@ class CronArchive
$secondsSinceLastArchive = $this->getSecondsSinceLastArchive();
if ($secondsSinceLastArchive < $secondsSinceMidnight) {
$secondsSinceMidnight = $secondsSinceLastArchive;
$secondsBackToLookForVisits = $secondsSinceLastArchive;
$sinceInfo = "(since the last successful archiving)";
} else {
$secondsBackToLookForVisits = $secondsSinceMidnight;
$sinceInfo = "(since midnight)";
}
$from = Date::now()->subSeconds($secondsSinceMidnight)->getDatetime();
$from = Date::now()->subSeconds($secondsBackToLookForVisits)->getDatetime();
$to = Date::now()->addHour(1)->getDatetime();
$dao = new RawLogDao();
$hasVisits = $dao->hasSiteVisitsBetweenTimeframe($from, $to, $idSite);
if ($hasVisits) {
$this->logger->info("- tracking data found for website id $idSite (between $from and $to)");
$this->logger->info("- tracking data found for website id $idSite since $from UTC $sinceInfo");
} else {
$this->logger->info("- no new tracking data for website id $idSite (between $from and $to)");
$this->logger->info("- no new tracking data for website id $idSite since $from UTC $sinceInfo");
}
return $hasVisits;
......
......@@ -17,7 +17,7 @@
"SaveAndApply": "Save & Apply",
"SegmentDisplayedAllWebsites": "all websites",
"SegmentDisplayedThisWebsiteOnly": "this website only",
"SegmentIsDisplayedForWebsite": "and displayed for",
"SegmentIsDisplayedForWebsite": "and processed for",
"SegmentNotApplied": "Segment '%s' not applied",
"SegmentNotAppliedMessage": "You are requesting data for the Custom Segment '%s', this Piwik configuration currently prevents real time processing of reports for performance reasons.",
"SelectSegmentOfVisits": "Select a segment of visits:",
......
Subproject commit a3a5924c8530c2cbbf95071e153f26c3927e7e38
Subproject commit cd490aa6bcc4f50adedaadcdd979a8ffb8c4d0c5
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