Loading cmds/statsd/src/Log.h +3 −0 Original line number Diff line number Diff line Loading @@ -26,5 +26,8 @@ #include <log/log.h> // Use the local value to turn on/off debug logs instead of using log.tag. properties. // The advantage is that in production compiler can remove the logging code if the local // DEBUG/VERBOSE is false. #define VLOG(...) \ if (DEBUG) ALOGD(__VA_ARGS__); cmds/statsd/src/condition/CombinationConditionTracker.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ #define DEBUG true // STOPSHIP if true #define DEBUG false // STOPSHIP if true #include "Log.h" #include "CombinationConditionTracker.h" Loading cmds/statsd/src/config/ConfigManager.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -55,8 +55,9 @@ void ConfigManager::Startup() { // for (const auto& pair : configsFromDisk) { // UpdateConfig(pair.first, pair.second); //} // this should be called from StatsService when it receives a statsd_config UpdateConfig(ConfigKey(1000, "fake"), build_fake_config()); // Uncomment the following line and use the hard coded config for development. // UpdateConfig(ConfigKey(1000, "fake"), build_fake_config()); } void ConfigManager::AddListener(const sp<ConfigListener>& listener) { Loading cmds/statsd/src/metrics/CountMetricProducer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ #define DEBUG true // STOPSHIP if true #define DEBUG false // STOPSHIP if true #include "Log.h" #include "CountMetricProducer.h" Loading cmds/statsd/src/metrics/DurationMetricProducer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ #define DEBUG true #define DEBUG false #include "Log.h" #include "DurationMetricProducer.h" Loading Loading
cmds/statsd/src/Log.h +3 −0 Original line number Diff line number Diff line Loading @@ -26,5 +26,8 @@ #include <log/log.h> // Use the local value to turn on/off debug logs instead of using log.tag. properties. // The advantage is that in production compiler can remove the logging code if the local // DEBUG/VERBOSE is false. #define VLOG(...) \ if (DEBUG) ALOGD(__VA_ARGS__);
cmds/statsd/src/condition/CombinationConditionTracker.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ #define DEBUG true // STOPSHIP if true #define DEBUG false // STOPSHIP if true #include "Log.h" #include "CombinationConditionTracker.h" Loading
cmds/statsd/src/config/ConfigManager.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -55,8 +55,9 @@ void ConfigManager::Startup() { // for (const auto& pair : configsFromDisk) { // UpdateConfig(pair.first, pair.second); //} // this should be called from StatsService when it receives a statsd_config UpdateConfig(ConfigKey(1000, "fake"), build_fake_config()); // Uncomment the following line and use the hard coded config for development. // UpdateConfig(ConfigKey(1000, "fake"), build_fake_config()); } void ConfigManager::AddListener(const sp<ConfigListener>& listener) { Loading
cmds/statsd/src/metrics/CountMetricProducer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ #define DEBUG true // STOPSHIP if true #define DEBUG false // STOPSHIP if true #include "Log.h" #include "CountMetricProducer.h" Loading
cmds/statsd/src/metrics/DurationMetricProducer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ #define DEBUG true #define DEBUG false #include "Log.h" #include "DurationMetricProducer.h" Loading