Skip to content

Commit 7e70b4d

Browse files
authored
Change open mode of sairedis.rec recording file to 'append' (sonic-net#207)
1 parent 0e36564 commit 7e70b4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/src/sai_redis_record.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void logfileReopen()
4141
* empty file here.
4242
*/
4343

44-
recording.open(recfile);
44+
recording.open(recfile, std::ofstream::out | std::ofstream::app);
4545

4646
if (!recording.is_open())
4747
{
@@ -82,7 +82,7 @@ void startRecording()
8282

8383
recfile = logOutputDir + "/sairedis.rec";
8484

85-
recording.open(recfile);
85+
recording.open(recfile, std::ofstream::out | std::ofstream::app);
8686

8787
if (!recording.is_open())
8888
{

0 commit comments

Comments
 (0)