Merge "Reset buffer after stop protolog to file" into tm-qpr-dev

This commit is contained in:
Hongwei Wang
2023-03-01 22:41:50 +00:00
committed by Android (Google) Code Review

View File

@@ -255,6 +255,7 @@ public class BaseProtoLogImpl {
if (writeToFile) {
writeProtoLogToFileLocked();
logAndPrintln(pw, "Log written to " + mLogFile + ".");
mBuffer.resetBuffer();
}
if (mProtoLogEnabled) {
logAndPrintln(pw, "ERROR: logging was re-enabled while waiting for flush.");