fix: redirect Python logging from stderr to stdout (prevents false [ERROR] labels in MCP log)

This commit is contained in:
Tom
2026-03-06 11:49:31 +01:00
parent fec537950f
commit 4c12096886

View File

@@ -26,7 +26,7 @@ log_file = os.path.join(log_dir, "kicad_interface.log")
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s [%(levelname)s] %(message)s",
handlers=[logging.FileHandler(log_file), logging.StreamHandler(sys.stderr)],
handlers=[logging.FileHandler(log_file), logging.StreamHandler(sys.stdout)],
)
logger = logging.getLogger("kicad_interface")