Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monthly and yearly logrotation does not work #184

Closed
danieljuhl opened this issue Nov 1, 2014 · 1 comment
Closed

Monthly and yearly logrotation does not work #184

danieljuhl opened this issue Nov 1, 2014 · 1 comment

Comments

@danieljuhl
Copy link
Contributor

There is a problem with far future timeouts, which causes the rotation to execute immediately and then re-execute in an infinite loop.

The issue is related to nodejs/node-v0.x-archive#8656

To make this work we should probably rethink the logrotation, so that it stores the time for the next rotation, and if that time is far future we set a timeout below the limit (less than approx 25 days) which checks whether we are ready for a logrotation or not, and if not we simply set a new timeout, either on the exact time if it is less than 25 days or below that limit.

@trentm
Copy link
Owner

trentm commented Nov 18, 2014

This will be in bunyan version 1.2.3. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants