Skip to content

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

Merged
shumkov merged 6 commits into
fix/dashmate/drive-logfrom
feat/reopen-log
Sep 18, 2023
Merged

shumkov merged 6 commits into
fix/dashmate/drive-logfrom
feat/reopen-log

Conversation

@lklimek

@lklimek lklimek commented Sep 18, 2023

Copy link
Copy Markdown
Contributor

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 marked this pull request as draft September 18, 2023 13:54
@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

@shumkov shumkov left a comment

Copy link
Copy Markdown
Collaborator

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
@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