chore(deadcode): dedupe plugin JSON logger · openclaw/openclaw@29444b2
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // `openclaw plugins list`: builds registry reports and defers terminal-only formatting modules. |
2 | 2 | import { getRuntimeConfig } from "../config/config.js"; |
3 | | -import type { PluginLogger } from "../plugins/types.js"; |
4 | 3 | import { defaultRuntime, writeRuntimeJson, type RuntimeEnv } from "../runtime.js"; |
| 4 | +import { quietPluginJsonLogger } from "./plugins-json-logger.js"; |
5 | 5 | |
6 | 6 | /** Options accepted by the plugin list command. */ |
7 | 7 | export type PluginsListOptions = { |
@@ -10,13 +10,6 @@ export type PluginsListOptions = {
|
10 | 10 | verbose?: boolean; |
11 | 11 | }; |
12 | 12 | |
13 | | -const quietPluginJsonLogger: PluginLogger = { |
14 | | -debug: () => undefined, |
15 | | -info: () => undefined, |
16 | | -warn: () => undefined, |
17 | | -error: () => undefined, |
18 | | -}; |
19 | | - |
20 | 13 | async function loadHumanListModules() { |
21 | 14 | const [sourceDisplay, table, themeModule, commandFormat, listFormat] = await Promise.all([ |
22 | 15 | import("../plugins/source-display.js"), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。