Skip to content

Commit

Permalink
[UPD] Some Info level logs to Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Aug 20, 2019
1 parent b26ce9b commit b2bb7c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/EmbedIO/EmbedIO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageId>EmbedIO</PackageId>
<CodeAnalysisRuleSet>..\..\StyleCop.Analyzers.ruleset</CodeAnalysisRuleSet>
<DebugType>Full</DebugType>
<Version>3.0.0</Version>
<Version>3.0.1</Version>
<Product>EmbedIO</Product>
<Company>Unosquare</Company>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
Expand Down
5 changes: 3 additions & 2 deletions src/EmbedIO/Files/FileCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/EmbedIO/WebSockets/WebSocketModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b2bb7c2

Please sign in to comment.