From 27dafe3307ed40482784b85b5a88852ad8553140 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Sat, 14 Aug 2021 12:44:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97=E9=99=90=E5=88=B6500?= =?UTF-8?q?=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MiaoWoo --- packages/plugin/src/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin/src/config.ts b/packages/plugin/src/config.ts index 10fafe53..b292e6b9 100644 --- a/packages/plugin/src/config.ts +++ b/packages/plugin/src/config.ts @@ -103,7 +103,7 @@ export class PluginConfigManager { } needSave && base.save(metadata.file, configLoader.dump(configValue)) } - console.debug(`[${plugin.description.name}] Load Config ${metadata.variable} from file ${metadata.file} =>\n${JSON.stringify(configValue, undefined, 4)}`) + console.debug(`[${plugin.description.name}] Load Config ${metadata.variable} from file ${metadata.file} =>\n${JSON.stringify(configValue, undefined, 4).substr(0, 500)}`) } this.defienConfigProp(plugin, metadata, configValue) } catch (error) { @@ -117,7 +117,7 @@ export class PluginConfigManager { metadata.file = fs.concat(fs.file(plugin.description.loadMetadata.file).parent, plugin.description.name, metadata.filename) let result = this.getConfigLoader(metadata.format).dump(plugin[metadata.variable]) base.save(metadata.file, result) - console.debug(`[${plugin.description.name}] Save Config ${metadata.variable} to file ${metadata.file} =>\n${result}`) + console.debug(`[${plugin.description.name}] Save Config ${metadata.variable} to file ${metadata.file} =>\n${result.substr(0, 500)}`) return true } catch (error) { console.i18n("ms.plugin.manager.config.save.error", { plugin: plugin.description.name, name: metadata.name, format: metadata.format, error })