Skip to content

Commit

Permalink
Rotate record file before writing new log.
Browse files Browse the repository at this point in the history
Change-Id: Id04c25b3f7f09681adc7f7ab26973f7784ebe9ba
  • Loading branch information
mint570 committed Jun 1, 2024
1 parent 98012ed commit 0dd21da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ void RecWriter::record(const std::string& val)
{
return ;
}
record_ofs << swss::getTimestamp() << "|" << val << std::endl;
if (isRotate())
{
setRotate(false);
logfileReopen();
}
record_ofs << swss::getTimestamp() << "|" << val << std::endl;
}


Expand Down

0 comments on commit 0dd21da

Please sign in to comment.