Skip to content

Commit ab31a9a

Browse files
jlevequeShuotian Cheng
authored and
Shuotian Cheng
committed
[orchagent]: Remove time stamp from SwSS recording file name (sonic-net#272)
1 parent 27c49a0 commit ab31a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchagent/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ int main(int argc, char **argv)
199199
/* Disable/enable SwSS recording */
200200
if (gSwssRecord)
201201
{
202-
gRecordFile = record_location + "/" + "swss." + getTimestamp() + ".rec";
203-
gRecordOfs.open(gRecordFile);
202+
gRecordFile = record_location + "/" + "swss.rec";
203+
gRecordOfs.open(gRecordFile, std::ofstream::out | std::ofstream::app);
204204
if (!gRecordOfs.is_open())
205205
{
206206
SWSS_LOG_ERROR("Failed to open SwSS recording file %s", gRecordFile.c_str());

0 commit comments

Comments
 (0)