Removed debug logging

main^2^2
Jeremiah K 2024-07-17 14:26:25 -05:00
rodzic 14c2eeb89e
commit e18ead1235
2 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -140,12 +140,8 @@ async def on_room_message(
full_display_name = "Unknown user" full_display_name = "Unknown user"
message_timestamp = event.server_timestamp 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 # We do not relay the past
if message_timestamp < bot_start_time: if message_timestamp < bot_start_time:
logger.debug(f"Ignoring old message received at {message_timestamp}")
return return
room_config = None room_config = None

Wyświetl plik

@ -64,7 +64,7 @@ def connect_meshtastic(force_connect=False):
except Exception as e: except Exception as e:
attempts += 1 attempts += 1
if attempts <= retry_limit: 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) time.sleep(attempts)
else: else:
logger.error(f"Could not connect: {e}") logger.error(f"Could not connect: {e}")