Name the dhcp watcher thread (#49144)
When getting py-spy reports, it is helpful to get thread names to make it easier to track down issues.pull/49166/head
parent
2cc9ae1af1
commit
91821fa6ad
homeassistant/components/dhcp
|
@ -312,6 +312,8 @@ class DHCPWatcher(WatcherBase):
|
|||
)
|
||||
|
||||
self._sniffer.start()
|
||||
if self._sniffer.thread:
|
||||
self._sniffer.thread.name = self.__class__.__name__
|
||||
|
||||
def handle_dhcp_packet(self, packet):
|
||||
"""Process a dhcp packet."""
|
||||
|
|
Loading…
Reference in New Issue