From b31ebbc35a3deaf783d2496ffdeb77b8ae6024c0 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Mon, 23 Jul 2018 16:46:43 +0200 Subject: [PATCH] Set the log levels for performance monitors during object construction Refers to #50 --- ATxService/AutoTx.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ATxService/AutoTx.cs b/ATxService/AutoTx.cs index 1611d61..24e5d56 100644 --- a/ATxService/AutoTx.cs +++ b/ATxService/AutoTx.cs @@ -324,6 +324,7 @@ namespace ATxService Interval = 250, Limit = _config.MaxCpuUsage, Probation = 16, + LogPerformanceReadings = _config.MonitoringLogLevel, Enabled = true }; _cpu.LoadAboveLimit += OnLoadAboveLimit; @@ -345,6 +346,7 @@ namespace ATxService Interval = 250, Limit = (float) _config.MaxDiskQueue / 1000, Probation = 16, + LogPerformanceReadings = _config.MonitoringLogLevel, Enabled = true }; _phyDisk.LoadAboveLimit += OnLoadAboveLimit; -- GitLab