From 701fedfb61e5ef9e12c266e5f1232b500f3efbdf Mon Sep 17 00:00:00 2001 From: David Kyle Date: Tue, 25 Jun 2024 11:39:40 +0100 Subject: [PATCH 1/3] Log at warning --- lib/model/CIndividualModel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/CIndividualModel.cc b/lib/model/CIndividualModel.cc index 1fb67d2422..5ec054a178 100644 --- a/lib/model/CIndividualModel.cc +++ b/lib/model/CIndividualModel.cc @@ -133,7 +133,7 @@ bool CIndividualModel::isPopulation() const { CIndividualModel::TOptionalUInt64 CIndividualModel::currentBucketCount(std::size_t pid, core_t::TTime time) const { if (!this->bucketStatsAvailable(time)) { - LOG_ERROR(<< "No statistics at " << time << " for " << this->description() + LOG_WARN(<< "No statistics at " << time << " for " << this->description() << ", current bucket = " << this->printCurrentBucket() << ", partitionFieldValue = " << this->dataGatherer().partitionFieldValue() << ", personName = " << this->dataGatherer().personName(pid)); From d4552f3f8b19cd345af3620ffca4cdfa87c8ac53 Mon Sep 17 00:00:00 2001 From: David Kyle Date: Tue, 25 Jun 2024 11:47:32 +0100 Subject: [PATCH 2/3] add changelog --- docs/CHANGELOG.asciidoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/CHANGELOG.asciidoc b/docs/CHANGELOG.asciidoc index 0b62426c44..74120ce6c5 100644 --- a/docs/CHANGELOG.asciidoc +++ b/docs/CHANGELOG.asciidoc @@ -30,6 +30,10 @@ == {es} version 8.15.0 +=== Enhancements + +* Log 'No statistics at.. ' message as a warning. (See {ml-pull}2684[#2684].) + === Bug Fixes * Fix "stack use after scope" memory error. (See {ml-pull}2673[#2673].) From 5abb4d6b79b2574225a883576361aabec8a64b07 Mon Sep 17 00:00:00 2001 From: David Kyle Date: Mon, 1 Jul 2024 13:50:29 +0100 Subject: [PATCH 3/3] check style --- lib/model/CIndividualModel.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/model/CIndividualModel.cc b/lib/model/CIndividualModel.cc index 5ec054a178..48075e628f 100644 --- a/lib/model/CIndividualModel.cc +++ b/lib/model/CIndividualModel.cc @@ -134,9 +134,9 @@ CIndividualModel::TOptionalUInt64 CIndividualModel::currentBucketCount(std::size_t pid, core_t::TTime time) const { if (!this->bucketStatsAvailable(time)) { LOG_WARN(<< "No statistics at " << time << " for " << this->description() - << ", current bucket = " << this->printCurrentBucket() - << ", partitionFieldValue = " << this->dataGatherer().partitionFieldValue() - << ", personName = " << this->dataGatherer().personName(pid)); + << ", current bucket = " << this->printCurrentBucket() + << ", partitionFieldValue = " << this->dataGatherer().partitionFieldValue() + << ", personName = " << this->dataGatherer().personName(pid)); return TOptionalUInt64(); }