Skip to content

Commit 397c44c

Browse files
authored
[sairedis] Fix reopen recoding file (sonic-net#1087)
Update recording file if not start recording was performed previously
1 parent 26094f8 commit 397c44c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Recorder.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ void Recorder::recordingFileReopen()
207207
* empty file here.
208208
*/
209209

210+
m_recordingFile = m_recordingOutputDirectory + "/" + m_recordingFileName;
211+
210212
m_ofstream.open(m_recordingFile, std::ofstream::out | std::ofstream::app);
211213

212214
if (!m_ofstream.is_open())

0 commit comments

Comments
 (0)