summaryrefslogtreecommitdiff
path: root/logd/LogReaderThread.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-05-12 13:16:41 -0700
committerTom Cherry <tomcherry@google.com>2020-05-12 15:39:19 -0700
commitd5b3838dbc846f9e17bae6ed23bb8b9aa0e59b26 (patch)
tree4c7affb08905872dc1f2886db1b09ab721a191ee /logd/LogReaderThread.cpp
parent68630a0dbe1b30058600a1418c5d8d9ba89ed419 (diff)
logd: make LogBuffer an interface
We may use different implementations of LogBuffer in the future, so we make it interface and create a concrete ChattyLogBuffer class that implements it. Test: logging unit tests Change-Id: I5731d6404640664c9acc26b7c677dff3110c6a11
Diffstat (limited to 'logd/LogReaderThread.cpp')
-rw-r--r--logd/LogReaderThread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/logd/LogReaderThread.cpp b/logd/LogReaderThread.cpp
index 4889c24139..e58e3ebde8 100644
--- a/logd/LogReaderThread.cpp
+++ b/logd/LogReaderThread.cpp
@@ -84,13 +84,13 @@ void LogReaderThread::ThreadFunction() {
lock.unlock();
if (tail_) {
- logbuf.flushTo(client, start, nullptr, privileged_, can_read_security_logs_,
+ logbuf.FlushTo(client, start, nullptr, privileged_, can_read_security_logs_,
std::bind(&LogReaderThread::FilterFirstPass, this, _1));
leading_dropped_ =
true; // TODO: Likely a bug, if leading_dropped_ was not true before calling
// flushTo(), then it should not be reset to true after.
}
- start = logbuf.flushTo(client, start, last_tid_, privileged_, can_read_security_logs_,
+ start = logbuf.FlushTo(client, start, last_tid_, privileged_, can_read_security_logs_,
std::bind(&LogReaderThread::FilterSecondPass, this, _1));
// We only ignore entries before the original start time for the first flushTo(), if we