Page 1 of 1

Error setting loglevel

Posted: Wednesday 11 March 2020 20:35
by jkimmel
This

Code: Select all

	    logging =   
    {
        level = dz.LOG_DEBUG, -- set to LOG_ERROR when tested and OK
        marker = 'setSetpoint', 
    },
gives me

Code: Select all

 Error: (3.0.1) ...moticz/scripts/dzVents/generated_scripts/Heizung Bad.lua:21: attempt to index a nil value (global 'dz')
I have no idea what could be wrong here

Re: Error setting loglevel  [Solved]

Posted: Thursday 12 March 2020 9:55
by waaren
jkimmel wrote: Wednesday 11 March 2020 20:35

Code: Select all

 Error: (3.0.1) ...moticz/scripts/dzVents/generated_scripts/Heizung Bad.lua:21: attempt to index a nil value (global 'dz')
on the logging section dz is not declared yet. It should be domoticz.LOG_DEBUG