Merge "Reset buffer after stop protolog to file"