logging condition

This commit is contained in:
Roumen Georgiev 2019-10-02 15:21:53 +03:00
parent 7406577546
commit 3c11e87d2d

View file

@ -61,7 +61,8 @@ public class ActionProfileSwitch extends Action {
ProfileStore profileStore = activeProfile.getProfile(); ProfileStore profileStore = activeProfile.getProfile();
if (profileStore == null) return; if (profileStore == null) return;
if(profileStore.getSpecificProfile(profileName) == null) { 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; return;
} }