From 8674b3c9fa5ab487b08f7edbe470291696f27378 Mon Sep 17 00:00:00 2001 From: Prince Sunny Date: Thu, 5 Aug 2021 08:13:47 -0700 Subject: [PATCH] Open record file in append mode (#1845) *Open record file (swss.rec) in append mode. Similar to sairedis.rec --- orchagent/orch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/orch.cpp b/orchagent/orch.cpp index 2afc2c20f49d..b4ef24666238 100644 --- a/orchagent/orch.cpp +++ b/orchagent/orch.cpp @@ -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()) {