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 and qiluo-msft committed Aug 16, 2021
1 parent c8e3e9c commit 3f35776
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 @@ -535,7 +535,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 3f35776

Please sign in to comment.