logging-conf-fix
This commit is contained in:
parent
66d0bba13c
commit
ced6d12468
|
@ -5,7 +5,7 @@ import logging
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
|
|
||||||
|
|
||||||
def get_newcomer_message(msg):
|
def get_newcomer_message(msg):
|
||||||
|
|
|
@ -6,7 +6,7 @@ import logging
|
||||||
|
|
||||||
# Create a logger instance
|
# Create a logger instance
|
||||||
logger = logging.getLogger("bot.api")
|
logger = logging.getLogger("bot.api")
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
|
||||||
|
|
||||||
api_base = f"https://api.telegram.org/bot{BOT_TOKEN}/"
|
api_base = f"https://api.telegram.org/bot{BOT_TOKEN}/"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import logging
|
||||||
from utils.mention import mention
|
from utils.mention import mention
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
|
|
||||||
|
|
||||||
positive_reactions = [
|
positive_reactions = [
|
||||||
|
|
|
@ -5,7 +5,7 @@ import logging
|
||||||
from state.scan import get_all_pattern, get_average_pattern
|
from state.scan import get_all_pattern, get_average_pattern
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
|
|
||||||
start_message = {
|
start_message = {
|
||||||
"en": "Welcome home! You can type any message here to be passed to chat",
|
"en": "Welcome home! You can type any message here to be passed to chat",
|
||||||
|
|
|
@ -9,7 +9,7 @@ from nlp.toxicity_detector import detector
|
||||||
from nlp.normalize import normalize
|
from nlp.normalize import normalize
|
||||||
|
|
||||||
logger = logging.getLogger("handlers.messages_routing")
|
logger = logging.getLogger("handlers.messages_routing")
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
|
||||||
|
|
||||||
|
|
||||||
async def messages_routing(msg, state):
|
async def messages_routing(msg, state):
|
||||||
|
|
|
@ -4,7 +4,7 @@ import logging
|
||||||
|
|
||||||
# Create a logger instance
|
# Create a logger instance
|
||||||
logger = logging.getLogger("state.redis")
|
logger = logging.getLogger("state.redis")
|
||||||
logging.basicConfig(level=logging.WARNING)
|
|
||||||
|
|
||||||
|
|
||||||
class RedisService:
|
class RedisService:
|
||||||
|
|
|
@ -4,7 +4,7 @@ import math
|
||||||
|
|
||||||
# Create a logger instance
|
# Create a logger instance
|
||||||
logger = logging.getLogger("state.scan")
|
logger = logging.getLogger("state.scan")
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
|
||||||
|
|
||||||
|
|
||||||
async def get_all_pattern(uid):
|
async def get_all_pattern(uid):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
|
|
||||||
|
|
||||||
# Define SVG code generation function with member_id parameter
|
# Define SVG code generation function with member_id parameter
|
||||||
|
|
Loading…
Reference in New Issue
Block a user