[Network Binding] - Excessive noise in logs since OH4 upgrade [SOLVED]

image

2023-09-13 18:46:22.140 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceOrangePi' updated to ON
2023-09-13 18:46:55.589 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceX201' updated to OFF
2023-09-13 18:46:55.891 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Device3xs' updated to OFF
2023-09-13 18:46:56.108 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceSophieLaptop' updated to OFF
2023-09-13 18:46:56.384 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceCarPhone' updated to OFF
2023-09-13 18:46:58.037 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceHackintosh' updated to ON
2023-09-13 18:46:58.179 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceHackintosh' updated to ON
2023-09-13 18:47:01.932 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DevicePrinter' updated to OFF
2023-09-13 18:47:01.975 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceX2100' updated to OFF
2023-09-13 18:47:22.171 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceOrangePi' updated to ON
2023-09-13 18:47:22.309 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'DeviceOrangePi' updated to ON

Since upgrading to OH4, all my devices that I track with network binding get an update in the logs every time they are checked. This happens even if the online/offline status doesn’t change.

I was wondering if this is a bug, or if I can turn it off. I’ve checked the Advanced tab on one of the devices but there’s nothing that stands out:

No.

Yes:

1 Like

Thank you for your help! That was it!

I edited /var/lib/openhab/etc/log4j2.xml and added the two missing lines from your link:

<!-- openHAB specific logger configuration -->

                <Logger level="INFO" name="org.openhab"/>

                <Logger level="ERROR" name="openhab.event.ItemStateEvent"/>
                <Logger level="ERROR" name="openhab.event.ItemAddedEvent"/>
                <Logger level="ERROR" name="openhab.event.ItemRemovedEvent"/>
                <Logger level="ERROR" name="openhab.event.ItemChannelLinkAddedEvent"/>
                <Logger level="ERROR" name="openhab.event.ItemChannelLinkRemovedEvent"/>
                <Logger level="ERROR" name="openhab.event.ChannelDescriptionChangedEvent"/>
                <Logger level="ERROR" name="openhab.event.ThingStatusInfoEvent"/>
                <Logger level="ERROR" name="openhab.event.ThingAddedEvent"/>
                <Logger level="ERROR" name="openhab.event.ThingUpdatedEvent"/>
                <Logger level="ERROR" name="openhab.event.ThingRemovedEvent"/>
                <Logger level="ERROR" name="openhab.event.InboxUpdatedEvent"/>
                <Logger level="ERROR" name="openhab.event.RuleStatusInfoEvent"/>
                <Logger level="ERROR" name="openhab.event.RuleAddedEvent"/>
                <Logger level="ERROR" name="openhab.event.RuleRemovedEvent"/>
                <Logger level="ERROR" name="openhab.event.StartlevelEvent"/>
                <Logger level="ERROR" name="openhab.event.AddonEvent"/>
                **<Logger level="ERROR" name="openhab.event.ItemStateUpdatedEvent"/>**
**<Logger level="ERROR" name="openhab.event.GroupStateUpdatedEvent"/>**
1 Like