logging condition
This commit is contained in:
parent
7406577546
commit
3c11e87d2d
|
@ -61,7 +61,8 @@ public class ActionProfileSwitch extends Action {
|
|||
ProfileStore profileStore = activeProfile.getProfile();
|
||||
if (profileStore == null) return;
|
||||
if(profileStore.getSpecificProfile(profileName) == null) {
|
||||
log.error("Selected profile does not exist! - "+ profileName);
|
||||
if (L.isEnabled(L.AUTOMATION))
|
||||
log.error("Selected profile does not exist! - "+ profileName);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue