Network binding: Permanent log messages "DHCP request for unknown address:"

Tags: #<Tag:0x00007f5c7e39d2d0>

(Micha Mueller) #1

in my openhab.log, I get permanent entries like

  2017-06-06 13:46:07.821 [INFO ] [rvice.dhcp.ReceiveDHCPRequestPackets] - DHCP request for unknown address:
  2017-06-06 13:48:28.331 [INFO ] [rvice.dhcp.ReceiveDHCPRequestPackets] - DHCP request for registered address:

I think they come from the network binding.

Things are setup like this

Thing network:device:handy1 [ hostname="", port="0", retry="1", timeout="5000", refresh_interval="60000", use_system_ping="false", dhcplisten="true" ]

Is there a way to suppress them?

(Rossko57) #2

Sure, set dhcplisten=“false”

(Micha Mueller) #3

Okay, but then presence detections will take longer to see the actual state, right?

(David Graeff) #4

Change the log level from “info” to “warn” and u won’t see any information messages anymore :slight_smile:
It might be a good idea to make this message a “trace” log, which is per default not visible.

(Rossko57) #5

Good idea, even if only for registered addresses. An ‘info’ for unknown addresses might be still desirable? Guess a user needs to raise an enhancement request against the binding in the issues list

(Micha Mueller) #6

Hmm, info for unknown addresses would not be desirable in our network - I am using the binding only for presence detection and so only have some phones in it. All other devices (and there are a LOT) in the network would lead to unknown address log messages - not very convenient…
But an enhancement request would be nice…

(Rossko57) #7

Well, you are the user with the use-case, over to you :smile:

(Micha Mueller) #8

Okay, done:

(Micha Mueller) #9

The enhancement request seems to be resolved and I updated to the latest snapshot, but the log messages are still there.
I also changed the network:device: to network:pingdevice:
Anything else that I need to do to avoid the log messages?

(David Graeff) #10

The log messages were only removed for not tracked devices. Configured devices are still logged but as trace, if I recall correctly. If not, please open another issue on github. We will not remove the log message completely though.

Cheers David