mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 04:48:15 +00:00
refactor(cli): separate json payload output from logging
This commit is contained in:
parent
274af0486a
commit
4ee41cc6f3
89 changed files with 710 additions and 693 deletions
|
|
@ -223,7 +223,7 @@ export async function runNodeDaemonStatus(opts: NodeDaemonStatusOptions = {}) {
|
|||
};
|
||||
|
||||
if (json) {
|
||||
defaultRuntime.log(JSON.stringify(payload, null, 2));
|
||||
defaultRuntime.writeJson(payload);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue