From 62207a9255d497bb9aec503fc203071582be74f9 Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 31 May 2020 03:22:41 +0200 Subject: [PATCH] Reduce flush to disk interval further --- PluralKit.Core/Modules.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PluralKit.Core/Modules.cs b/PluralKit.Core/Modules.cs index 136ab15e..348e7fc5 100644 --- a/PluralKit.Core/Modules.cs +++ b/PluralKit.Core/Modules.cs @@ -105,12 +105,12 @@ namespace PluralKit.Core { // Both the same output, except one is raw compact JSON and one is plain text. // Output simultaneously. May remove the JSON formatter later, keeping it just in cast. - // Flush interval is 250ms (down from 10s) to make "tail -f" easier. May be too low? + // Flush interval is 50ms (down from 10s) to make "tail -f" easier. May be too low? a.File( (config.LogDir ?? "logs") + $"/pluralkit.{_component}.log", outputTemplate: outputTemplate, rollingInterval: RollingInterval.Day, - flushToDiskInterval: TimeSpan.FromMilliseconds(250), + flushToDiskInterval: TimeSpan.FromMilliseconds(50), restrictedToMinimumLevel: LogEventLevel.Information, formatProvider: new UTCTimestampFormatProvider(), buffered: true); @@ -119,7 +119,7 @@ namespace PluralKit.Core new RenderedCompactJsonFormatter(), (config.LogDir ?? "logs") + $"/pluralkit.{_component}.json", rollingInterval: RollingInterval.Day, - flushToDiskInterval: TimeSpan.FromMilliseconds(250), + flushToDiskInterval: TimeSpan.FromMilliseconds(50), restrictedToMinimumLevel: LogEventLevel.Information, buffered: true); })