diff --git a/matrix_utils.py b/matrix_utils.py index 1f9bc62..524f403 100644 --- a/matrix_utils.py +++ b/matrix_utils.py @@ -140,12 +140,8 @@ async def on_room_message( full_display_name = "Unknown user" message_timestamp = event.server_timestamp - # Detailed logging for timestamp comparison - logger.debug(f"Message timestamp: {message_timestamp}, Bot start time: {bot_start_time}") - # We do not relay the past if message_timestamp < bot_start_time: - logger.debug(f"Ignoring old message received at {message_timestamp}") return room_config = None diff --git a/meshtastic_utils.py b/meshtastic_utils.py index d9f0796..dcd4af6 100644 --- a/meshtastic_utils.py +++ b/meshtastic_utils.py @@ -64,7 +64,7 @@ def connect_meshtastic(force_connect=False): except Exception as e: attempts += 1 if attempts <= retry_limit: - logger.warn(f"Attempt #{attempts-1} failed. Retrying in {attempts} secs {e}") + logger.warning(f"Attempt #{attempts-1} failed. Retrying in {attempts} secs {e}") time.sleep(attempts) else: logger.error(f"Could not connect: {e}")