Clean up some log levels in CpuStatService

This commit is contained in:
Ske 2020-05-05 18:12:45 +02:00
parent 0b41b4f6b8
commit ffa6faddd2

View File

@ -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;
}