rudimentary logging of screen_on and process start/crash via logd to
statsd. The numbers should be replaced with protobuf enums and the
format is subject to changes. But this gets it working for now.
Test: flash with new image, statsd should print out events. toggle
screen on from off state will add a log entry
Change-Id: I733e249965689f00597232c0e3eccfd26e1a958c
diff --git a/cmds/statsd/src/LogReader.cpp b/cmds/statsd/src/LogReader.cpp
index e0ed646..2a9e500 100644
--- a/cmds/statsd/src/LogReader.cpp
+++ b/cmds/statsd/src/LogReader.cpp
@@ -110,7 +110,7 @@
/* no pid restriction */ 0);
// Open the buffer(s)
- eventLogger = android_logger_open(loggers, LOG_ID_EVENTS);
+ eventLogger = android_logger_open(loggers, LOG_ID_STATS);
// Read forever
if (eventLogger) {