Skip to content

Commit

Permalink
[sairedis]: Perform auto log rotate when record dir gets changed (son…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored Oct 19, 2017
1 parent 11f7bb3 commit 098732d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/sai_redis_record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,9 @@ sai_status_t setRecordingOutputDir(

logOutputDir = dir;

/* perform auto log rotate when log directory gets changed */

g_logrotate = true;

return SAI_STATUS_SUCCESS;
}

0 comments on commit 098732d

Please sign in to comment.