mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
debug: add INFO logging for RX_LOG_DATA events and subscriptions
This commit is contained in:
@@ -228,7 +228,7 @@ class DeviceManager:
|
||||
for event_type, handler in handlers:
|
||||
sub = self.mc.subscribe(event_type, handler)
|
||||
self._subscriptions.append(sub)
|
||||
logger.debug(f"Subscribed to {event_type.value}")
|
||||
logger.info(f"Subscribed to {event_type.value}")
|
||||
|
||||
def _sync_contacts_to_db(self):
|
||||
"""Sync device contacts to database."""
|
||||
@@ -519,6 +519,7 @@ class DeviceManager:
|
||||
import io
|
||||
data = getattr(event, 'payload', {})
|
||||
payload_hex = data.get('payload', '')
|
||||
logger.info(f"RX_LOG_DATA received: {len(payload_hex)//2} bytes, snr={data.get('snr')}")
|
||||
if not payload_hex:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user