Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Log rotating Log_file with locking #2

jausions opened this Issue Nov 28, 2011 · 2 comments


None yet
2 participants

Truncating the log using Log_file when locking is enabled could lead to lost log events.

The locking mechanism in place currently uses a lock on the log file itself, so truncating the file could cause issues when one process rotates (i.e. renames) the log while some other processes might have opened the log file at the same time but are waiting for the lock to be released.

The lock should be acquired on a dedicated lock file and not on the log file itself.


jparise commented Dec 6, 2011

Would you be able to propose a patch implementing the suggested behavior?


jparise commented Apr 3, 2016

Closed due to lack of response.

@jparise jparise closed this Apr 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment