Just upgraded from 5.0 to 5.1 and now I am getting the ‘source’ on all the events.
Can I remove this ‘source’ part?
18:34:58.262 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Multi1_Motion’ changed from ON to OFF (source: org.openhab.core.thing$zigbee:device:986908efef:a4c1388e0e613536:A4C1388E0E613536_1_intrusion)
No, not at this time. It’s part of the event. I’m sure an option to turn it on and off could be implemented but there isn’t one now.
I can’t find it now but somewhere someone posted a log4j2 regex filter that removes it at the logging configuration level.
I’ll only add that the source has already helped several users solve otherwise hard to diagnose problems, immediately identifying whether a rule or a Thing or a UI was behaving strangely and in the case of rules exactly which rule was the problem. It wasn’t added “just because”, especially for those experiencing problems knowing where an event comes from is as important as knowing the event occurred in the first place.
That’s fair enough, I fail to see why when it was added it wasn’t added as optional though, not everybody wants a bloated log. If there’s a problem that a ‘normal’ log can’t identify, simply turn on this new extended logging.