Skip to content

Commit

Permalink
[sairedis] Fix reopen recoding file (sonic-net#1087)
Browse files Browse the repository at this point in the history
Update recording file if not start recording was performed previously
  • Loading branch information
kcudnik authored Jul 21, 2022
1 parent 26094f8 commit 397c44c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ void Recorder::recordingFileReopen()
* empty file here.
*/

m_recordingFile = m_recordingOutputDirectory + "/" + m_recordingFileName;

m_ofstream.open(m_recordingFile, std::ofstream::out | std::ofstream::app);

if (!m_ofstream.is_open())
Expand Down

0 comments on commit 397c44c

Please sign in to comment.