For a new script I always put the script inactive. But at 'active = false,' the script is still monitored for errors. This spams the log in a very high frequency.
It would be nice when this checking could be done in a third state: true, false, test (or debug)
At 'active = false,' the script is still monitored for errors [SOLVED]
Moderator: leecollings
-
- Posts: 1355
- Joined: Friday 29 August 2014 11:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Ermelo
- Contact:
Re: At 'active = false,' the script is still monitored for errors [SOLVED]
Yes, I know what you mean but it can't be done. Lua loads all the scripts as a Lua module and at that moment it is parsed and evaluated as well. There is nothing I can do about that other than writing my own parsers in Lua and that makes everything horribly slow. So, there are two options: make sure that at least the code is syntacticly correct (the execute function isn't called so it doesn't have to be good code.. just syntactically correct). Or write your script in the GUI and un-tic the active switch there. Then the script isn't loaded by Lua (as it isn't on the filesystem). On top of that you have the advantage that the script is stored in the database and backed up along with the rest so you get some kind of versioning there as well.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Who is online
Users browsing this forum: No registered users and 1 guest