From 509e133913e9269cfa5ff8aba661467086e4464f Mon Sep 17 00:00:00 2001 From: lemoer Date: Fri, 27 Dec 2024 02:04:19 +0100 Subject: [PATCH] LabCleaningBot: use logging.debug() for receive_message() errors --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 0457b7d..67b3621 100644 --- a/main.py +++ b/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()