diff --git a/orchagent/orch.cpp b/orchagent/orch.cpp index 05005e812c..13a8aff979 100644 --- a/orchagent/orch.cpp +++ b/orchagent/orch.cpp @@ -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()) {