diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerBolusAgo.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerBolusAgo.java index 6595d99c36..275050ad16 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerBolusAgo.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerBolusAgo.java @@ -67,7 +67,8 @@ public class TriggerBolusAgo extends Trigger { return false; double minutesAgo = (double) (DateUtil.now() - lastBolusTime) / (60 * 1000); - log.debug("LastBolus min ago: "+minutesAgo); + if (L.isEnabled(L.AUTOMATION)) + log.debug("LastBolus min ago: "+minutesAgo); boolean doRun = comparator.getValue().check((minutesAgo), getValue()); if (doRun) {