mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 07:24:52 +09:00
Merge pull request #1200 from bbassie/feature/log-retention
Delete log files older than a configurable number of days
This commit is contained in:
1 parent
9ec817c1c6
commit
e37bf31cd3
6 files changed
+177
-1
No files matched your search
@@ -492,6 +492,11 @@ async function startup() {
|
||||
controller.stop();
|
||||
});
|
||||
|
||||
lib.startLogRetention(
|
||||
[path.join(args.logDirectory, "cluster"), path.join(args.logDirectory, "controller")],
|
||||
() => controllerConfig.get("controller.log_retention_days"),
|
||||
);
|
||||
|
||||
await controller.start(args);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user