Closed eddyg closed 2 years ago
AFAIK this is not a problem, in debug mode a lot of stuff is being logged that is just internal to Kodi. We do not plan to use the new Kodi settings format just yet.
Leaving aside the new vs old settings format, I think the amount of time UpNext spends checking its own settings could be looked at.
Every time a message is added to the log the settings are checked, and even when UpNext is not doing anything, every second the main polling loop keeps on checking settings to see if it has been disabled. Every time the settings are checked they have to be parsed again. It is just because the old format is being used and debug logging is enabled that this becomes more obvious, but doesn't mean this couldn't be improved.
Should only really be doing this once, and then use the Monitor.onSettingsChanged callback to update settings values if they have actually changed. Example here: https://github.com/MoojMidge/service.upnext/blob/5cde0dd503c0f538df9e51fc9cdfa56833b4d657/resources/lib/state.py#L116-L164 https://github.com/MoojMidge/service.upnext/blob/5cde0dd503c0f538df9e51fc9cdfa56833b4d657/resources/lib/monitor.py#L435-L446
Can create a PR to do the same here?
I recently upgraded to 19.1:
I've noticed the log getting filled with messages like this:
This is a great service, so hopefully this is something that can be addressed?
Thanks for your time... and a terrific add-on!