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

feat(drive): reopen log file on HUP signal #1408

Merged
merged 6 commits into from
Sep 18, 2023

Conversation

lklimek
Copy link
Contributor

@lklimek lklimek commented Sep 18, 2023

Issue being fixed or feature implemented

Logrotate should send HUP signal to a service after rotating logs.
Service is expected to close the log file and reopen (recreate) it.

What was done?

Implemented rotate() for LogDestination::File.

How Has This Been Tested?

Local devnet

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@lklimek lklimek changed the base branch from v0.25-dev to fix/dashmate/drive-log September 18, 2023 15:56
@lklimek lklimek marked this pull request as ready for review September 18, 2023 16:06
@lklimek lklimek changed the title feat(drive-abci): reopen log file on HUP signal feat(drive): reopen log file on HUP signal Sep 18, 2023
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shumkov shumkov merged commit 2db9238 into fix/dashmate/drive-log Sep 18, 2023
1 of 2 checks passed
@shumkov shumkov deleted the feat/reopen-log branch September 18, 2023 16:48
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

Successfully merging this pull request may close these issues.

2 participants