mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Fix log splitting not happening on UTC boundnary
This commit is contained in:
1 parent
56d3997675
commit
142cf8a626
1 file changed
+2
@@ -260,6 +260,7 @@ async function initialize(): Promise<InitializeParameters> {
|
||||
levels,
|
||||
});
|
||||
clusterLogger.add(new DailyRotateFile({
|
||||
format: winston.format.json(),
|
||||
filename: "cluster-%DATE%.log",
|
||||
utc: true,
|
||||
dirname: path.join(args.logDirectory, "cluster"),
|
||||
@@ -269,6 +270,7 @@ async function initialize(): Promise<InitializeParameters> {
|
||||
logger.add(new DailyRotateFile({
|
||||
format: winston.format.json(),
|
||||
filename: "controller-%DATE%.log",
|
||||
utc: true,
|
||||
dirname: path.join(args.logDirectory, "controller"),
|
||||
}));
|
||||
logger.add(new winston.transports.Stream({
|
||||
|
||||
Reference in new issue
Block a user