LabCleaningBot: use logging.debug() for receive_message() errors

This commit is contained in:
lemoer 2024-12-27 02:04:19 +01:00
parent a69fd2ed04
commit 509e133913

View File

@ -2,6 +2,7 @@
import time import time
import requests import requests
import logging
import json import json
from result import Result, Ok, Err, is_err from result import Result, Ok, Err, is_err
from typing import List from typing import List
@ -218,7 +219,7 @@ class LabCleaningBot:
message_result = await self.api.receive_message(websocket) message_result = await self.api.receive_message(websocket)
if is_err(message_result): if is_err(message_result):
print(message_result.unwrap_err()) logging.debug(message_result.unwrap_err())
continue continue
else: else:
message = message_result.unwrap() message = message_result.unwrap()