From ffa6faddd2477772ee299b782573c101e0387edb Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 5 May 2020 18:12:45 +0200 Subject: [PATCH] Clean up some log levels in CpuStatService --- PluralKit.Bot/Services/CpuStatService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Services/CpuStatService.cs b/PluralKit.Bot/Services/CpuStatService.cs index 04c3304b..00aebdb9 100644 --- a/PluralKit.Bot/Services/CpuStatService.cs +++ b/PluralKit.Bot/Services/CpuStatService.cs @@ -24,7 +24,7 @@ namespace PluralKit.Bot // We get the current processor time, wait 5 seconds, then compare // https://medium.com/@jackwild/getting-cpu-usage-in-net-core-7ef825831b8b - _logger.Information("Estimating CPU usage..."); + _logger.Debug("Estimating CPU usage..."); var stopwatch = new Stopwatch(); stopwatch.Start(); @@ -39,7 +39,7 @@ namespace PluralKit.Bot var timePassed = stopwatch.Elapsed; var percent = cpuTimePassed / timePassed; - _logger.Information("CPU usage measured as {Percent:P}", percent); + _logger.Debug("CPU usage measured as {Percent:P}", percent); LastCpuMeasure = percent; return percent; }