fix: trim feishu login path output

maintainer edit: remove leftover config-path printing from Feishu channel login while keeping the generic success message.
This commit is contained in:
chengyongru 2026-06-18 14:07:12 +08:00 committed by Xubin Ren
parent cd51654bf1
commit 99846da6f3

View File

@ -717,7 +717,7 @@ class FeishuChannel(BaseChannel):
print(f"Domain: {self.config.domain}")
# Write credentials back to config.json
from nanobot.config.loader import get_config_path, load_config, save_config
from nanobot.config.loader import load_config, save_config
full_config = load_config()
feishu_cfg = getattr(full_config.channels, "feishu", None) or {}
@ -729,7 +729,6 @@ class FeishuChannel(BaseChannel):
setattr(full_config.channels, "feishu", feishu_cfg)
save_config(full_config)
print(f"\nCredentials saved to {get_config_path()} (feishu enabled)")
print("Login successful!")
return True