credential_watch / repro_logging.py
Humanlearning's picture
feat: Introduce `MCPClient` for multi-server MCP communication with mock support, update `gradio` dependency, and add logging verification scripts.
6796ce4
raw
history blame contribute delete
527 Bytes
import logging
# Simulate main.py
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
# Simulate mcp_client.py behavior
logger = logging.getLogger("mcp_client")
if not logger.handlers:
handler = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.INFO)
logger.info("This should be printed twice if bug exists.")