summaryrefslogtreecommitdiffstats
path: root/libstats
diff options
context:
space:
mode:
authorYao Chen <yaochen@google.com>2018-10-15 16:12:48 -0700
committerYao Chen <yaochen@google.com>2018-10-15 16:12:48 -0700
commit763e3aee423cda2b99faac6094b16a6f910d1b80 (patch)
treef0d2e3ef1dbbf6004121a7521dc55ca66be93d23 /libstats
parent83093e7ef82ed04787fc1434a41775ff5d9d836a (diff)
downloadsystem_core-763e3aee423cda2b99faac6094b16a6f910d1b80.tar.gz
system_core-763e3aee423cda2b99faac6094b16a6f910d1b80.tar.bz2
system_core-763e3aee423cda2b99faac6094b16a6f910d1b80.zip
Reset statsd writer to init state after close
Bug: 117796113 Test: locally tested and verified stats logs can write to statsd again. Change-Id: I33b006199d23f851ff1a6e49445fb16d74223062
Diffstat (limited to 'libstats')
-rw-r--r--libstats/stats_event_list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstats/stats_event_list.c b/libstats/stats_event_list.c
index 735088a37..8eedc60dc 100644
--- a/libstats/stats_event_list.c
+++ b/libstats/stats_event_list.c
@@ -125,6 +125,7 @@ void note_log_drop() {
void stats_log_close() {
statsd_writer_init_lock();
+ write_to_statsd = __write_to_statsd_init;
if (statsdLoggerWrite.close) {
(*statsdLoggerWrite.close)();
}