Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix(start): 修复jiuwenswarm-start --status/list 命令无输出

openJiuwen-botda072e3babdc
diff --git a/jiuwenswarm/start_services.py b/jiuwenswarm/start_services.py
index 3797ec088b..d6beabd4b7 100644
--- a/jiuwenswarm/start_services.py
+++ b/jiuwenswarm/start_services.py
@@ -658,6 +658,16 @@ def _dispatch_action(args: argparse.Namespace) -> int:
def main() -> None:
"""CLI entry point."""
signal.signal(signal.SIGTERM, signal.default_int_handler)
+
+ # Configure logging here (inside the entry point, not at module import time)
+ # so that ``--list``/``--status`` output and service-startup messages are
+ # actually emitted. The root logger otherwise keeps its default WARNING
+ # level and every ``logging.info`` call is silently dropped — the process
+ # runs but nothing is printed to the terminal. Locating the call here
+ # (rather than at module scope) also avoids import-time side effects on the
+ # global logger configuration.
+ logging.basicConfig(level=logging.INFO, format="%(message)s", stream=sys.stdout)
+
args = _parse_args()
exit_code = _dispatch_action(args)
raise SystemExit(exit_code)