kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
Removed debug logging
rodzic
14c2eeb89e
commit
e18ead1235
|
@ -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
|
||||
|
|
|
@ -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}")
|
||||
|
|
Ładowanie…
Reference in New Issue