log.debug "setting $it.label level to $level"
it.setLevel(level)
}
- else {
+ //else { We want the worst case!(No need for else)
log.debug "turning $it.label on"
it.on()
- }
+ //}
}
else if (value?.switch == "off") {
log.debug "turning $it.label off"