logging-conf-fix

This commit is contained in:
Untone 2024-09-27 11:28:41 +03:00
parent 66d0bba13c
commit ced6d12468
8 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ import logging
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
def get_newcomer_message(msg):

View File

@ -6,7 +6,7 @@ import logging
# Create a logger instance
logger = logging.getLogger("bot.api")
logging.basicConfig(level=logging.DEBUG)
api_base = f"https://api.telegram.org/bot{BOT_TOKEN}/"

View File

@ -6,7 +6,7 @@ import logging
from utils.mention import mention
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
positive_reactions = [

View File

@ -5,7 +5,7 @@ import logging
from state.scan import get_all_pattern, get_average_pattern
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
start_message = {
"en": "Welcome home! You can type any message here to be passed to chat",

View File

@ -9,7 +9,7 @@ from nlp.toxicity_detector import detector
from nlp.normalize import normalize
logger = logging.getLogger("handlers.messages_routing")
logging.basicConfig(level=logging.DEBUG)
async def messages_routing(msg, state):

View File

@ -4,7 +4,7 @@ import logging
# Create a logger instance
logger = logging.getLogger("state.redis")
logging.basicConfig(level=logging.WARNING)
class RedisService:

View File

@ -4,7 +4,7 @@ import math
# Create a logger instance
logger = logging.getLogger("state.scan")
logging.basicConfig(level=logging.DEBUG)
async def get_all_pattern(uid):

View File

@ -1,7 +1,7 @@
import logging
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
# Define SVG code generation function with member_id parameter