fix(bridge): 채널 중복 생성 race condition 수정 + AG- 접두사 + metadata 모니터링
This commit is contained in:
7
main.py
7
main.py
@@ -4,21 +4,22 @@ Entry point that runs the brain watcher and Discord bot together.
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import io
|
||||
import logging
|
||||
import signal
|
||||
import sys
|
||||
|
||||
from config import Config
|
||||
from watcher import BrainWatcher
|
||||
from bot import GravityBot
|
||||
|
||||
# Logging setup
|
||||
# Logging setup (UTF-8 forced for Windows cp949 compatibility)
|
||||
_utf8_stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s [%(name)s] %(levelname)s: %(message)s",
|
||||
datefmt="%Y-%m-%d %H:%M:%S",
|
||||
handlers=[
|
||||
logging.StreamHandler(sys.stdout),
|
||||
logging.StreamHandler(_utf8_stdout),
|
||||
logging.FileHandler("gravity_control.log", encoding="utf-8"),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user