- **status**: review --> fixed
- **Comment**:

commit 0b96adb085209e43bcb643b4c998f43c283c30e4 (HEAD -> develop, 
origin/develop, ticket-3320)
Author: thien.m.huynh <[email protected]>
Date:   Thu Aug 4 08:59:34 2022 +0700

    log: delete the empty log file when rotate log file [#3320]
    
    When performing an admin op command with id = 2 (SA_LOG_ADMIN_ROTATE_FILE)
    without parameters and there are no log record in the stream.
    There will be a empty log file created.
    
    By checking the size of the stream, this ticket avoids creating an empty
    log file. Osaflogd will remove the current file If there are no log records
    in the stream and create a new file with a new timestamp.



---

** [tickets:#3320] log: delete the empty log file when rotate log file**

**Status:** fixed
**Milestone:** 5.22.11
**Created:** Mon Jul 18, 2022 07:07 AM UTC by Thien Minh Huynh
**Last Updated:** Thu Aug 04, 2022 07:50 AM UTC
**Owner:** Thien Minh Huynh


In some cases, the users want to delete the empty log file at the time of 
rotation. This is to avoid messy empty log files when scheduled to log rotate.
Improve the enhancement of ticket #3046


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to