Skip to content

Fix log file rolling & cleanup - #1467

Merged
zolia merged 7 commits into
masterfrom
1460-remove-old-logs
Dec 20, 2019
Merged

Fix log file rolling & cleanup#1467
zolia merged 7 commits into
masterfrom
1460-remove-old-logs

Conversation

@tadaskay

@tadaskay tadaskay commented Dec 19, 2019

Copy link
Copy Markdown
Contributor

Fixes: #1460
Fixes: #1416

Comment thread bin/package/installation/post-install.sh Outdated
Comment thread config/flags_directory.go
Comment thread core/node/options.go
Comment thread debian/postinst Outdated
Comment thread logconfig/collector.go
Logging to data dir previously had unintended side effects during the log collection.
Using a dedicated dir from now on.
It will leave no more files than configured with MaxRemain.
Eventually, there will be MaxRemain*2 files left in log dir, because rolling writer
does not cleanup files from the previous startups, but I think it's good enough: subsequent startups of node will clean the old files again.
@tadaskay
tadaskay force-pushed the 1460-remove-old-logs branch from b4339a5 to 75929fb Compare December 19, 2019 18:52
@tadaskay
tadaskay requested a review from anjmao December 19, 2019 18:53
@zolia
zolia merged commit b1e601d into master Dec 20, 2019
@zolia
zolia deleted the 1460-remove-old-logs branch December 20, 2019 10:16
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.

Old node logs are not removed Node file logging should rotate logs into archives

4 participants