diff options
| author | 2018-03-01 13:03:38 -0800 | |
|---|---|---|
| committer | 2018-03-01 13:03:38 -0800 | |
| commit | 99427efbe85cc5dd9bcc40dd47bf05ad8600cecb (patch) | |
| tree | b1d0e97ca2e5b8c1c3bf705ab86c9b2d1dcd3c88 | |
| parent | aec6950118319e93084f4c3d2ba6087e8f7e15df (diff) | |
Add the MetricDimensionKey to the log when anomaly happens.
Test: statsd_test
Change-Id: I9454da23a95d106a6e70249bb26c04492fee9135
| -rw-r--r-- | cmds/statsd/src/anomaly/AnomalyTracker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/statsd/src/anomaly/AnomalyTracker.cpp b/cmds/statsd/src/anomaly/AnomalyTracker.cpp index 642604e17bf5..6ee51f38dde8 100644 --- a/cmds/statsd/src/anomaly/AnomalyTracker.cpp +++ b/cmds/statsd/src/anomaly/AnomalyTracker.cpp @@ -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."); |