From 49e8a0b7c4d7c0c0aed274491bfa08252d0690e9 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 22 Jul 2018 21:19:59 +0200 Subject: [PATCH] some logging conditional --- .../plugins/Sensitivity/SensitivityOref1Plugin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref1Plugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref1Plugin.java index 29787b14c0..214c82db9b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref1Plugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref1Plugin.java @@ -120,10 +120,12 @@ public class SensitivityOref1Plugin extends AbstractSensitivityPlugin { // when we have less than 8h worth of deviation data, add up to 90m of zero deviations // this dampens any large sensitivity changes detected based on too little data, without ignoring them completely - log.debug("Using most recent " + deviationsArray.size() + " deviations"); + if (Config.logAutosensData) + log.debug("Using most recent " + deviationsArray.size() + " deviations"); if (deviationsArray.size() < 96) { int pad = Math.round((1 - deviationsArray.size() / 96) * 18); - log.debug("Adding " + pad + " more zero deviations"); + if (Config.logAutosensData) + log.debug("Adding " + pad + " more zero deviations"); for (int d = 0; d < pad; d++) { //process.stderr.write("."); deviationsArray.add(0d);