LabCleaningBot: use logging.debug() for receive_message() errors
This commit is contained in:
parent
a69fd2ed04
commit
509e133913
3
main.py
3
main.py
@ -2,6 +2,7 @@
|
||||
|
||||
import time
|
||||
import requests
|
||||
import logging
|
||||
import json
|
||||
from result import Result, Ok, Err, is_err
|
||||
from typing import List
|
||||
@ -218,7 +219,7 @@ class LabCleaningBot:
|
||||
message_result = await self.api.receive_message(websocket)
|
||||
|
||||
if is_err(message_result):
|
||||
print(message_result.unwrap_err())
|
||||
logging.debug(message_result.unwrap_err())
|
||||
continue
|
||||
else:
|
||||
message = message_result.unwrap()
|
||||
|
Loading…
Reference in New Issue
Block a user