Add loggers

This commit is contained in:
2024-08-10 04:26:52 +02:00
parent e7520d5ffd
commit 5ad15320f7
3 changed files with 15 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
from asyncio import Lock, sleep
from datetime import datetime
import json
import logging
from twitchAPI.helper import first
from twitchAPI.eventsub.webhook import EventSubWebhook
@@ -16,6 +17,9 @@ from config import config
from services.notification import notify
logger = logging.getLogger(__name__)
class State(BaseModel):
title: str
category: str
@@ -188,7 +192,7 @@ class TwitchService:
@classmethod
async def start(cls):
print("Starting Twitch service...")
logger.info("Starting Twitch service...")
twith = await cls.authorize()
await cls(twith).run()