Merge "Reset buffer after stop protolog to file"
This commit is contained in:
@@ -255,6 +255,7 @@ public class BaseProtoLogImpl {
|
|||||||
if (writeToFile) {
|
if (writeToFile) {
|
||||||
writeProtoLogToFileLocked();
|
writeProtoLogToFileLocked();
|
||||||
logAndPrintln(pw, "Log written to " + mLogFile + ".");
|
logAndPrintln(pw, "Log written to " + mLogFile + ".");
|
||||||
|
mBuffer.resetBuffer();
|
||||||
}
|
}
|
||||||
if (mProtoLogEnabled) {
|
if (mProtoLogEnabled) {
|
||||||
logAndPrintln(pw, "ERROR: logging was re-enabled while waiting for flush.");
|
logAndPrintln(pw, "ERROR: logging was re-enabled while waiting for flush.");
|
||||||
|
|||||||
Reference in New Issue
Block a user