diff --git a/src/EmbedIO/EmbedIO.csproj b/src/EmbedIO/EmbedIO.csproj index b5943d78e..d8add841c 100644 --- a/src/EmbedIO/EmbedIO.csproj +++ b/src/EmbedIO/EmbedIO.csproj @@ -11,7 +11,7 @@ EmbedIO ..\..\StyleCop.Analyzers.ruleset Full - 3.0.0 + 3.0.1 EmbedIO Unosquare LICENSE diff --git a/src/EmbedIO/Files/FileCache.cs b/src/EmbedIO/Files/FileCache.cs index 3a9602104..1cfbf78d8 100644 --- a/src/EmbedIO/Files/FileCache.cs +++ b/src/EmbedIO/Files/FileCache.cs @@ -116,9 +116,10 @@ private async Task CheckMaxSize(CancellationToken cancellationToken) var timeKeeper = new TimeKeeper(); var maxSizeKb = _maxSizeKb; var initialSizeKb = ComputeTotalSize() / 1024L; + if (initialSizeKb <= maxSizeKb) { - $"Total size = {initialSizeKb}/{_maxSizeKb}kb, not purging.".Info(nameof(FileCache)); + $"Total size = {initialSizeKb}/{_maxSizeKb}kb, not purging.".Debug(nameof(FileCache)); return; } @@ -146,7 +147,7 @@ private async Task CheckMaxSize(CancellationToken cancellationToken) } $"Purge completed in {timeKeeper.ElapsedTime}ms: removed {removedCount} items ({removedSize / 1024L}kb). Total size is now {totalSizeKb}kb." - .Info(nameof(FileCache)); + .Debug(nameof(FileCache)); } // Enumerate key / value pairs because the Keys and Values property diff --git a/src/EmbedIO/WebSockets/WebSocketModule.cs b/src/EmbedIO/WebSockets/WebSocketModule.cs index 33d2bde83..75b48df7b 100644 --- a/src/EmbedIO/WebSockets/WebSocketModule.cs +++ b/src/EmbedIO/WebSockets/WebSocketModule.cs @@ -528,7 +528,7 @@ private void RemoveWebSocket(IWebSocketContext context) } catch (OperationCanceledException) { - $"[{context.Id}] OnClientDisconnectedAsync was canceled.".Info(nameof(WebSocketModule)); + $"[{context.Id}] OnClientDisconnectedAsync was canceled.".Debug(nameof(WebSocketModule)); } catch (Exception e) {