diff options
author | srijan-sivakumar <ssivakum@redhat.com> | 2020-08-07 15:02:07 +0530 |
---|---|---|
committer | Sunny Kumar <sunkumar@redhat.com> | 2020-08-11 10:40:22 +0000 |
commit | b759709f947da57e00b44262fa3fa72a53557ca2 (patch) | |
tree | c4bf5179d994a6dd4e637cf6251c7d390782adac /run-tests-in-vagrant.sh | |
parent | 634ce64d0f03ddf3c2a3c05ce21cf9cdcbb763c5 (diff) |
Events: Log file not re-opened after logrotate.
Issue: The logging is being done in the same file
even after the logrotate utility has changed the file.
This causes the logfile to grow indefinitely.
Code Changes: Using the WatchedFileHandler class instead
of FileHandler class. This watches the file it is logging
into and if the file changes, it is closed and reopened
using the file name. Hence after file rotate, a new file
will be used for logging instead of continuing with
the same old file.
Fixes: #1289
Change-Id: I773d04f17613a03709cb682692efb39fd8e664e2
Signed-off-by: srijan-sivakumar <ssivakum@redhat.com>
Diffstat (limited to 'run-tests-in-vagrant.sh')
0 files changed, 0 insertions, 0 deletions