Checking the logging level in the dzVents script
Posted: Monday 17 May 2021 10:30
How can I check the logging level in the dzVents script. I want to do something like:
if (logging.level == domoticz.LOG_DEBUG) then
-- Print something / send Telegram notification.
end
But logging variable is not known, I get the following error:
if (logging.level == domoticz.LOG_DEBUG) then
-- Print something / send Telegram notification.
end
But logging variable is not known, I get the following error:
Code: Select all
2021-05-17 08:00:00.353 Error: dzVents: Error: (3.0.2) ControlDoorLock: ...cz/scripts/dzVents/generated_scripts/ContolDoorLocks.lua:57: attempt to index a nil value (global 'logging')