New message in debug log for python plugin.

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Thorgal789
Posts: 882
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

New message in debug log for python plugin.

Post by Thorgal789 »

Hello, just by curiosity, all is working fine, but if I increase the debug level in my python plugin, I have this kind of lines that flood the windows (more than 1 by seconds)

Code: Select all

(ZIGBEE) Releasing lock for 'ZIGBEE'
(ZIGBEE) Acquiring lock for 'ZIGBEE' 
Some know if it's something normal ? If yes, those logs are realy too much talkatives.

The plugin use a permanent connection by websocket.
Filip
Posts: 117
Joined: Thursday 03 November 2016 10:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New message in debug log for python plugin.

Post by Filip »

I have the same especially with plugins using Threading. I just tried with the multi-threading example in the domoticz plugin folder, and got the same...
multi.png
multi.png (27.51 KiB) Viewed 878 times
ferrosk
Posts: 44
Joined: Saturday 26 August 2017 20:13
Target OS: Linux
Domoticz version: 2023.2
Contact:

Re: New message in debug log for python plugin.

Post by ferrosk »

This is known issue in Domoticz 2022.1. The fix has been released in beta channel and people are testing it, see viewtopic.php?t=38086
Domoticz 2023.2 on Odroid M1 and Armbian
MySensors (RFM69 Serial GW): bunch of DIY sensors/devices
Zwave (Z-Wave.me RaZberry board): Danfoss devices
Zigbee (Sonoff Dongle Plus): IKEA, Tesla devices
Thorgal789
Posts: 882
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: New message in debug log for python plugin.

Post by Thorgal789 »

Ok, thx, will make a try, in my mind the fix was just for compatibility with recent python version.
User avatar
waltervl
Posts: 6689
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: New message in debug log for python plugin.

Post by waltervl »

I also do not think that the change to a Python ABI will modify the log behavior. This should be addressed to @dnpwwo but I think he has higher priorities.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Thorgal789
Posts: 882
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: New message in debug log for python plugin.

Post by Thorgal789 »

ferrosk
Posts: 44
Joined: Saturday 26 August 2017 20:13
Target OS: Linux
Domoticz version: 2023.2
Contact:

Re: New message in debug log for python plugin.

Post by ferrosk »

waltervl wrote: Sunday 27 February 2022 11:37 I also do not think that the change to a Python ABI will modify the log behavior. This should be addressed to @dnpwwo but I think he has higher priorities.
The changes (i.e. improved inter-thread locking strategy and others) in Python Framework by moving to new Python ABI fixed the cause of those log messages not just logging behavior. You can see in this thread it indeed helped to fix this problem not only for me and my plugin but also for other people using other plugins...
Domoticz 2023.2 on Odroid M1 and Armbian
MySensors (RFM69 Serial GW): bunch of DIY sensors/devices
Zwave (Z-Wave.me RaZberry board): Danfoss devices
Zigbee (Sonoff Dongle Plus): IKEA, Tesla devices
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest