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
private fun processActions() {
if (!isEnabled(PluginType.GENERAL))
return
if (loopPlugin.isSuspended || !loopPlugin.isEnabled(PluginType.LOOP)) {
if (loopPlugin.isSuspended || !loopPlugin.isEnabled()) {
aapsLogger.debug(LTag.AUTOMATION, "Loop deactivated")
executionLog.add(resourceHelper.gs(R.string.smscommunicator_loopisdisabled))
return
}
val enabled = constraintChecker.isAutomationEnabled()