aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py2
-rw-r--r--velascobot2/utils.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/main.py b/main.py
index 86fbf4b..c01aa6b 100644
--- a/main.py
+++ b/main.py
@@ -75,7 +75,7 @@ def main(config: Path | None, token: str | None) -> None:
)
bot = Bot(
- messenger, bot_token, motd_chats, motd_list, whitelist, testing=True
+ messenger, bot_token, motd_chats, motd_list, whitelist, testing=False
)
run_bot(bot)
diff --git a/velascobot2/utils.py b/velascobot2/utils.py
index e89e1d4..24c5160 100644
--- a/velascobot2/utils.py
+++ b/velascobot2/utils.py
@@ -1,5 +1,8 @@
+import logging
from enum import StrEnum
+logger = logging.getLogger(__name__)
+
class GraphicType(StrEnum):
STICKER = "STICKER"
@@ -35,7 +38,7 @@ class ChatData:
@staticmethod
def from_sql_row(row: tuple[str, str, str, int, int, float, int, int]):
- print("From SQL row:", repr(row))
+ logger.debug("From SQL row:", repr(row))
return ChatData(
row[0],
row[1],