Skip to content

Commit

Permalink
Open record file in append mode (#1845)
Browse files Browse the repository at this point in the history
*Open record file (swss.rec) in append mode. Similar to sairedis.rec
  • Loading branch information
prsunny authored Aug 5, 2021
1 parent 7aca82d commit 8674b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/orch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void Orch::logfileReopen()
* empty file here.
*/

gRecordOfs.open(gRecordFile);
gRecordOfs.open(gRecordFile, std::ofstream::out | std::ofstream::app);

if (!gRecordOfs.is_open())
{
Expand Down

0 comments on commit 8674b3c

Please sign in to comment.