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()) {