Skip to content

Commit

Permalink
[orchagent]: Remove time stamp from SwSS recording file name (sonic-n…
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored and Shuotian Cheng committed Aug 1, 2017
1 parent 27c49a0 commit ab31a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ int main(int argc, char **argv)
/* Disable/enable SwSS recording */
if (gSwssRecord)
{
gRecordFile = record_location + "/" + "swss." + getTimestamp() + ".rec";
gRecordOfs.open(gRecordFile);
gRecordFile = record_location + "/" + "swss.rec";
gRecordOfs.open(gRecordFile, std::ofstream::out | std::ofstream::app);
if (!gRecordOfs.is_open())
{
SWSS_LOG_ERROR("Failed to open SwSS recording file %s", gRecordFile.c_str());
Expand Down

0 comments on commit ab31a9a

Please sign in to comment.