How to log Rule loading and refreshing?

I am running openHAB 5.0.2 on a WIndows machine.

I like to get some debug logs from ule loading and refreshing.

I found an old suggestion from @mstormi to use ‘org.eclipse.smarthome.model.script‘ to set to debug, but this does not work (anymore?).

Who knows what is the the current module/package is I can put the logging on.

The question is asked because I get a lot of long recompiles of various (not touched?) rules when changing something. I like to get some more insights on this.

Hello @GeVaSta !

I’m not sure if I understood your question correctly, but perhaps the link below can help:

Thanks, but thats just how the logging works. I am aware of that. I just need to know the right package name to put the logging on (“log:set debug -package name-”).

So which package name to get the rule loading and refreshing information from. It used to be ‘‘org.eclipse.smarthome.model.script‘‘ but this does not give any info anymore.

I think org.openhab.core.automation is what you’re looking for. It will give you more than just rules, but you should get the information you’re after.

I thought it did not work but now I see something coming. Keep you informed.

Thanks.

1 Like

Sadly it shows only the loading of changed rules and the triggering, but not the compiling.

The compiling part I am interested in.

org.openhab.core.model.script ?

If it’s DSL rules that might add something, but if it’s JavaScript or another add-on language, you might have to enable logging for that bundle as well, e.g. org.openhab.automation.jsscripting.

Yes, it show which scripts (rules) are activated, but not specific to compiling.

I am looking for something that shows me which rules gets recompiled when something in the items, rules or thing changes.

Especially with my newly added Modbus binding, I experience very long delays (several minutes) and high utilization of the CPU when I work on the configuration of the binding.

I hope to get a finger behind the fact what causes this behaviour.

I will have a look at this. Thanks again.