Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a793e508 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add the MetricDimensionKey to the log when anomaly happens."

parents ffcd4bc8 99427efb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -193,7 +193,8 @@ void AnomalyTracker::declareAnomaly(const uint64_t& timestampNs, const MetricDim

    if (!mSubscriptions.empty()) {
        if (mAlert.has_id()) {
            ALOGI("An anomaly (%lld) has occurred! Informing subscribers.", mAlert.id());
            ALOGI("An anomaly (%lld) %s has occurred! Informing subscribers.", mAlert.id(),
                  key.toString().c_str());
            informSubscribers(key);
        } else {
            ALOGI("An anomaly (with no id) has occurred! Not informing any subscribers.");