We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27c49a0 commit ab31a9aCopy full SHA for ab31a9a
orchagent/main.cpp
@@ -199,8 +199,8 @@ int main(int argc, char **argv)
199
/* Disable/enable SwSS recording */
200
if (gSwssRecord)
201
{
202
- gRecordFile = record_location + "/" + "swss." + getTimestamp() + ".rec";
203
- gRecordOfs.open(gRecordFile);
+ gRecordFile = record_location + "/" + "swss.rec";
+ gRecordOfs.open(gRecordFile, std::ofstream::out | std::ofstream::app);
204
if (!gRecordOfs.is_open())
205
206
SWSS_LOG_ERROR("Failed to open SwSS recording file %s", gRecordFile.c_str());
0 commit comments