unique autosens debug tag

This commit is contained in:
Milos Kozak 2018-07-21 22:56:08 +02:00
parent 0601cba2d9
commit 213a45c1e5
11 changed files with 12 additions and 12 deletions

View file

@ -33,7 +33,7 @@ public class Config {
public static final boolean logNSUpload = true;
public static final boolean logPumpActions = true;
public static final boolean logCongigBuilderActions = true;
public static final boolean logAutosensData = true;
public static final boolean logAutosensData = false;
public static final boolean logEvents = false;
public static final boolean logProfile = false;

View file

@ -26,7 +26,7 @@ import info.nightscout.utils.SP;
*/
public class AutosensData implements DataPointWithLabelInterface {
private static Logger log = LoggerFactory.getLogger(AutosensData.class);
private static Logger log = LoggerFactory.getLogger("AUTOSENS");
public void setChartTime(long chartTime) {
this.chartTime = chartTime;
@ -86,7 +86,7 @@ public class AutosensData implements DataPointWithLabelInterface {
@Override
public String toString() {
return "AutosensData: " + new Date(time).toLocaleString() + " " + pastSensitivity + " Delta=" + delta + " avgDelta=" + avgDelta + " Bgi=" + bgi + " Deviation=" + deviation + " avgDeviation=" + avgDeviation + " Absorbed=" + absorbed + " CarbsFromBolus=" + carbsFromBolus + " COB=" + cob + " autosensRatio=" + autosensResult.ratio + " slopeFromMaxDeviation=" + slopeFromMaxDeviation + " slopeFromMinDeviation =" + slopeFromMinDeviation;
return "AutosensData: " + new Date(time).toLocaleString() + " " + pastSensitivity + " Delta=" + delta + " avgDelta=" + avgDelta + " Bgi=" + bgi + " Deviation=" + deviation + " avgDeviation=" + avgDeviation + " Absorbed=" + absorbed + " CarbsFromBolus=" + carbsFromBolus + " COB=" + cob + " autosensRatio=" + autosensResult.ratio + " slopeFromMaxDeviation=" + slopeFromMaxDeviation + " slopeFromMinDeviation=" + slopeFromMinDeviation;
}
public int minOld() {

View file

@ -9,7 +9,7 @@ import org.slf4j.LoggerFactory;
* Created by mike on 06.01.2017.
*/
public class AutosensResult {
private static Logger log = LoggerFactory.getLogger(AutosensResult.class);
private static Logger log = LoggerFactory.getLogger("AUTOSENS");
//default values to show when autosens algorithm is not called
public double ratio = 1d;

View file

@ -48,7 +48,7 @@ import static info.nightscout.utils.DateUtil.now;
*/
public class IobCobCalculatorPlugin extends PluginBase {
private Logger log = LoggerFactory.getLogger(IobCobCalculatorPlugin.class);
private Logger log = LoggerFactory.getLogger("AUTOSENS");
private static IobCobCalculatorPlugin plugin = null;

View file

@ -43,7 +43,7 @@ import static java.util.Calendar.MINUTE;
*/
public class IobCobOref1Thread extends Thread {
private static Logger log = LoggerFactory.getLogger(IobCobOref1Thread.class);
private static Logger log = LoggerFactory.getLogger("AUTOSENS");
private final Event cause;
private IobCobCalculatorPlugin iobCobCalculatorPlugin;

View file

@ -42,7 +42,7 @@ import static info.nightscout.utils.DateUtil.now;
*/
public class IobCobThread extends Thread {
private static Logger log = LoggerFactory.getLogger(IobCobThread.class);
private static Logger log = LoggerFactory.getLogger("AUTOSENS");
private final Event cause;
private IobCobCalculatorPlugin iobCobCalculatorPlugin;

View file

@ -14,7 +14,7 @@ import info.nightscout.utils.SafeParse;
public abstract class AbstractSensitivityPlugin extends PluginBase implements SensitivityInterface {
private static final Logger log = LoggerFactory.getLogger(SensitivityInterface.class);
private static final Logger log = LoggerFactory.getLogger("AUTOSENS");
public AbstractSensitivityPlugin(PluginDescription pluginDescription) {
super(pluginDescription);

View file

@ -28,7 +28,7 @@ import info.nightscout.utils.SP;
*/
public class SensitivityAAPSPlugin extends AbstractSensitivityPlugin {
private static Logger log = LoggerFactory.getLogger(SensitivityAAPSPlugin.class);
private static Logger log = LoggerFactory.getLogger("AUTOSENS");
static SensitivityAAPSPlugin plugin = null;

View file

@ -27,7 +27,7 @@ import info.nightscout.utils.DateUtil;
*/
public class SensitivityOref0Plugin extends AbstractSensitivityPlugin {
private static Logger log = LoggerFactory.getLogger(IobCobCalculatorPlugin.class);
private static Logger log = LoggerFactory.getLogger("AUTOSENS");
static SensitivityOref0Plugin plugin = null;

View file

@ -27,7 +27,7 @@ import info.nightscout.utils.DateUtil;
*/
public class SensitivityOref1Plugin extends AbstractSensitivityPlugin {
private static Logger log = LoggerFactory.getLogger(IobCobCalculatorPlugin.class);
private static Logger log = LoggerFactory.getLogger("AUTOSENS");
static SensitivityOref1Plugin plugin = null;

View file

@ -26,7 +26,7 @@ import info.nightscout.utils.SP;
*/
public class SensitivityWeightedAveragePlugin extends AbstractSensitivityPlugin {
private static Logger log = LoggerFactory.getLogger(SensitivityWeightedAveragePlugin.class);
private static Logger log = LoggerFactory.getLogger("AUTOSENS");
private static SensitivityWeightedAveragePlugin plugin = null;