better automation logging

This commit is contained in:
Milos Kozak 2020-06-11 12:26:38 +02:00
parent 5432fce13d
commit deb99f236b

View file

@ -177,10 +177,9 @@ class AutomationPlugin @Inject constructor(
@Synchronized @Synchronized
private fun processActions() { private fun processActions() {
if (!isEnabled(PluginType.GENERAL)) if (loopPlugin.isSuspended || !loopPlugin.isEnabled()) {
return
if (loopPlugin.isSuspended || !loopPlugin.isEnabled(PluginType.LOOP)) {
aapsLogger.debug(LTag.AUTOMATION, "Loop deactivated") aapsLogger.debug(LTag.AUTOMATION, "Loop deactivated")
executionLog.add(resourceHelper.gs(R.string.smscommunicator_loopisdisabled))
return return
} }
val enabled = constraintChecker.isAutomationEnabled() val enabled = constraintChecker.isAutomationEnabled()