Python DomoticzEx Logging
Posted: Thursday 10 April 2025 13:51
Version: 2025.1 build 16627
Platform: official Docker image
Plugin/Hardware: Raspberry, Python-Framework
Description:
In the wiki page "Developing a Python plugin" it says, that the Update method (for the extended framework) has a parameter called "Log" with the description "During the update a row will be written to the log table."
The expected behaviour is that every time Devices[id].Units[unit].Update(Log=True) is called, a line in the log should be created.
The actual behaviour is that there is no log line.
When I look into PythonObjectEx.cpp it looks like the "Log" variable is read into bWriteLog, but bWriteLog is not used anywhere else in the whole file.
Platform: official Docker image
Plugin/Hardware: Raspberry, Python-Framework
Description:
In the wiki page "Developing a Python plugin" it says, that the Update method (for the extended framework) has a parameter called "Log" with the description "During the update a row will be written to the log table."
The expected behaviour is that every time Devices[id].Units[unit].Update(Log=True) is called, a line in the log should be created.
The actual behaviour is that there is no log line.
When I look into PythonObjectEx.cpp it looks like the "Log" variable is read into bWriteLog, but bWriteLog is not used anywhere else in the whole file.